registernodeconnection(p_nodeid integer)

8.94. registernodeconnection(p_nodeid integer)

Function Properties

Language: PLPGSQL

Return Type: integer

Register (uniquely) the node connection so that only one slon can service the node

begin
	insert into sl_nodelock
		(nl_nodeid, nl_backendpid)
		values
		(p_nodeid, pg_backend_pid());

	return 0;
end;