Re: howto set a variable in transaction context

From: Thomas Markus <t(dot)markus(at)proventis(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: howto set a variable in transaction context
Date: 2008-04-10 12:29:53
Message-ID: 47FE0841.5030901@proventis.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks, it works

A. Kretschmer schrieb:
> am Thu, dem 10.04.2008, um 13:32:04 +0200 mailte Thomas Markus folgendes:
>
>> hi list,
>>
>> how can i set a variable, which content is only visible in current
>> transaction?
>> i know the way to create a temp table with
>>
>> create temp table ... on commit drop
>>
>> but i dont like that way. something like
>> |
>> set_config(setting_name, new_value, is_local)
>>
>> is it possible?
>>
>
> Yes, you can use this:
> http://www.postgresql.org/docs/current/interactive/runtime-config-custom.html
>
>
> How to use?
> http://groups.google.de/group/pgsql.general/browse_thread/thread/f914569b73d17258/5c0cb606d0ce698d?lnk=st&q=#5c0cb606d0ce698d
>
>
> HTH, Andreas
>

Attachment Content-Type Size
t_markus.vcf text/x-vcard 255 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Roberts, Jon 2008-04-10 12:31:39 pl/java on Solaris
Previous Message Albe Laurenz 2008-04-10 12:27:14 Re: Write in file from postgres