From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Passing a variable from the user interface to PostgreSQL |
Date: | 2011-01-22 08:01:24 |
Message-ID: | ihe2sk$gu6$2@reversiblemaps.ath.cx |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On 2011-01-21, Chris Campbell <ccampbell(at)cascadeds(dot)com> wrote:
> --_000_453A24085F801842AEA8D0B6B269065D45E2521023HDMCcdslocal_
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> Using:
> Windows 7 64bit
> VB.net 2010
> The latest devart.data.PostgreSQL (.net data connection)
> PostgreSQL 9.0.2
>
> Hi all,
>
> Question: Is there a way to pass a variable from an application's user inte=
> rface to the database such that it would be visible inside a database trigg=
> er and any corresponding function call?
no, but you could store the value and their backend's process id in a table beforehand.
the trigger could then retreive it from there.
or store it in a temporary table and the trigger can use dynamic sql
to retreive it.
See also, the "System Information Functions" section of the manual
--
⚂⚃ 100% natural
From | Date | Subject | |
---|---|---|---|
Next Message | Jasen Betts | 2011-01-22 08:16:14 | Re: Passing a variable from the user interface to PostgreSQL |
Previous Message | Mladen Gogala | 2011-01-22 05:38:47 | Re: Passing a variable from the user interface to PostgreSQL |