SQL on startup

Started by Nathan Heagyabout 25 years ago2 messagesgeneral
Jump to latest
#1Nathan Heagy
nathan@frontlogic.com

I have some sql that creates some operators which I want to be made
available to every connection. Can I run this SQL when postmaster
starts? Is there a way to execute it as the db root user so that the
operators will be available to everyone that connects?

Nathan Heagy

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Front Logic . Vividworks . Cow Comics . Thirty-Nine Days

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Nathan Heagy (#1)
Re: SQL on startup

Nathan Heagy writes:

I have some sql that creates some operators which I want to be made
available to every connection. Can I run this SQL when postmaster
starts? Is there a way to execute it as the db root user so that the
operators will be available to everyone that connects?

Once you have created the operators they are there persistently. They do
not get dropped when the server is shut down.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/