Re: Excuse me! Could i to ask a question?
От | Kevin Grittner |
---|---|
Тема | Re: Excuse me! Could i to ask a question? |
Дата | |
Msg-id | 20121217140623.14700@gmx.com обсуждение исходный текст |
Ответ на | Excuse me! Could i to ask a question? (劉維毅 <liu_wy@neusoft.com>) |
Список | pgsql-docs |
liu_wy@neusoft.com wrote: > I am a programmer, and i want to use Postgresql 9.2.2 to store my > applications' data. I had to > build a trigger wich based on Database level( When the database startup > , this trigger will fired and > executed.),while i found there are not defined database-level trigger in > postgresql. I read the doc but could > not found methods that could replaced triggers based on database. > Coud you give me a hand? Are there any tables auto update when > postgresql server startup, in this > way i could create a trigger on this table when server startup! It's not entirely clear what you want or why. Do you want this to run when the PostgreSQL cluster (collection of databases running under the control of a single postmaster process) is available for connections, when there is the first connection to the cluster (which creates a backend server process), when there is the first connection to some particular database in the cluster, or for each connection? What sorts of things do you need it to do? What is the problem you are trying to solve? If you want it once per cluster start, the easiest way would be to use a custom service script to stop and start the server, which could run a script. Other timings would need other solutions, but it would help to know what the problem is that you are trying to solve. -Kevin
В списке pgsql-docs по дате отправления: