Re: Trigger to run @ connection time?

Поиск
Список
Период
Сортировка
Искать
От
Dawid Kuroczko
Тема
Re: Trigger to run @ connection time?
Дата
Msg-id
758d5e7f0803131620u6175ec31gd46027c96de9dc03@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Trigger to run @ connection time? "Kynn Jones" <kynnjo@gmail.com>
Re: Trigger to run @ connection time? Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: Trigger to run @ connection time? "Kynn Jones" <kynnjo@gmail.com>
Re: Trigger to run @ connection time? Tom Lane <tgl@sss.pgh.pa.us>
Re: Trigger to run @ connection time? "Daniel Verite" <daniel@manitou-mail.org>
Re: Trigger to run @ connection time? "Dawid Kuroczko" <qnex42@gmail.com>
Re: Trigger to run @ connection time? "Marko Kreen" <markokr@gmail.com>
Re: Trigger to run @ connection time? "Dawid Kuroczko" <qnex42@gmail.com>
Re: Trigger to run @ connection time? "Marko Kreen" <markokr@gmail.com>
Re: Trigger to run @ connection time? Erik Jones <erik@myemma.com>
Re: Trigger to run @ connection time? "Marko Kreen" <markokr@gmail.com>
Re: Trigger to run @ connection time? Robert Treat <xzilla@users.sourceforge.net>
Re: Trigger to run @ connection time? Erik Jones <erik@myemma.com>
Re: Trigger to run @ connection time? "Kynn Jones" <kynnjo@gmail.com>
Re: Trigger to run @ connection time? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: Trigger to run @ connection time? btober@ct.metrocast.net
Re: Trigger to run @ connection time? Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: Trigger to run @ connection time? Berend Tober <btober@ct.metrocast.net>
Re: Trigger to run @ connection time? Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: Trigger to run @ connection time? "Andrej Ricnik-Bay" <andrej.groups@gmail.com>
Re: Trigger to run @ connection time? "Kynn Jones" <kynnjo@gmail.com>
Re: Trigger to run @ connection time? "Greg Sabino Mullane" <greg@turnstep.com>
On Thu, Mar 13, 2008 at 2:18 PM, Marko Kreen  wrote:
> On 3/13/08, Dawid Kuroczko  wrote:
>  >  An application which uses tsearch2 ('SELECT set_curdict() / set_curcfg()' being
>  >  called upon session start).  That is fine and that works.
>  >
>  >  Now, using statement pooling solution like pgbouncer is great benefit for this
>  >  specific application.  There is one little problem however -- one can never be
>  >  sure when session is started.  As a countermeasure there is a need to call
>  >  set_curdict() in every transaction (which is very fast), but one needs
>  >  to remember
>  >  to call that set_curdict() every time.
>  >
>  >  ON CONNECT trigger would solve that neatly!
>
>  Hm.  It seems to make more sense to implement connect-time
>  hook directly in pgbouncer.

Indeed that would solve the issue.  But then again it could be argued that
PL/pgSQL could be implemented outside the backend as well. ;-)

I see it as an addition which does have its applications.

   Regards,
       Dawid
В списке pgsql-general по дате отправления
От: Andrej Ricnik-Bay
Дата:
От: Andrej Ricnik-Bay
Дата:
Сообщение: Re: postgre vs MySQL
FAQ