Re: Global variables in plpgsql - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Global variables in plpgsql
Date
Msg-id BANLkTin7kk6iVgvmixno70sigoVB6vUZiw@mail.gmail.com
Whole thread Raw
In response to Global variables in plpgsql  (Nick Raj <nickrajjain@gmail.com>)
List pgsql-hackers
Hello

2011/4/11 Nick Raj <nickrajjain@gmail.com>:
> Hi,
> Can anyone know how to define global variable in plpgsql?
> Thanks
>
> Regards,
> Raj
>

plpgsql doesn't support global or session variables.

There are a few techniques - you can emulate it


http://www.postgresql.org/docs/8.3/static/plperl-global.html

Regards

Pavel Stehule


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: how to keep/lock/ hide pg_hba.conf ?
Next
From: Tom Lane
Date:
Subject: fn_collation in FmgrInfo considered harmful