Re: System triggers - Mailing list pgsql-hackers

From Doug McNaught
Subject Re: System triggers
Date
Msg-id m38yt6de48.fsf@varsoon.wireboard.com
Whole thread Raw
In response to System triggers  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Responses Re: System triggers
List pgsql-hackers
Shridhar Daithankar <shridhar_daithankar@persistent.co.in> writes:

> Hi,
> 
> I was going thr. a oracle refresher course today. I came across this concept 
> of system triggers which can be installed on things like database/connection 
> startup.
> 
> I think it would be a good addition to psotgresql. I was planning to hack 
> dblink for multiple named persistent connections. ( HI Joe, I am still 
> here..:-))) In that case, it would be a very easy thing to do to open a 
> remote database connection whenever a new connection is opened to database. 
> This way remote database would be totally transparent to end user..

IMHO, and I'm not a core developer, there's no need for "database
startup triggers"--whatever process starts the database can run an SQL
script at that time.

"Connection startup triggers" might be useful, and there's no good way
of doing them outside the database unless you wire it into every
client app, which kind of defeats the purpose...

> Can this be taken for future versions?

I'm sure your patches would be considered for inclusion.  :)

-Doug


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Error message style guide, take 2
Next
From: Manfred Koizar
Date:
Subject: Re: Static snapshot data