Re: PLPGSQL how to get transaction isolation level info

From: Janning Vygen <vygen(at)planwerk6(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Janning Vygen <vygen(at)gmx(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: PLPGSQL how to get transaction isolation level info
Date: 2005-07-16 11:58:43
Message-ID: 200507161358.43682.vygen@planwerk6.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Freitag, 15. Juli 2005 19:19 schrieb Tom Lane:
> Janning Vygen <vygen(at)gmx(dot)de> writes:
> > How can a function determine in which isolation level it runs?
>
> select current_setting('transaction_isolation');

Thank you for the hint.

I didn't find it myself because tab completion on SHOW doesn't show it.

But i read the docs again carfully and found "SHOW all" which shows
"transaction_isolation". I guess it would be fine if the refernce page for
SHOW and current_setting() list all the possible configuration settings.

And it should be added in bin/psql/tab-complete.c but maybe it is already
done. i dont have the cvs repository source code at hand. Maybe someon can
pick it up.

kind regards,
janning

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christian Traber 2005-07-16 12:27:55 encoding and locale
Previous Message Mark Morgan Lloyd 2005-07-16 10:45:18 Re: Nulls in timestamps