public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kevin Grittner <[email protected]>
To: "劉維毅" <[email protected]>
To: [email protected]
Subject: Re: Excuse me! Could i to ask a question?
Date: Mon, 17 Dec 2012 09:06:23 -0500
Message-ID: <[email protected]> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>
[email protected] 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
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Excuse me! Could i to ask a question?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox