pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nigel J. Andrews <nandrews@investsystems.co.uk>
Cc: Constantin Teodorescu <teo@flex.ro>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: GD global data array capabilities in pltcl
Date: Mon, 14 Oct 2002 13:28:57 -0400
Message-ID: <17247.1034616537@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0210141716470.584-100000@ponder.fairway2k.co.uk>
References: <Pine.LNX.4.21.0210141716470.584-100000@ponder.fairway2k.co.uk>

"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> so I would say it's not accessable from other functions within the same
> backend. I doubt very much that this data is database wide I can only see it
> being backend specific.

It's definitely backend-local.  I imagine you could access another
procedure's GD if you could determine its name (it's built from the
pg_proc OID, I think).  However, if you want to share global data across
pltcl functions in the same backend session, you shouldn't bother with
GD at all: just create named global Tcl variables.  All pltcl functions
in a backend run in the same interpreter, so they can trivially access
global variables.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <17247.1034616537@sss.pgh.pa.us>
Permalink:  ../17247.1034616537@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17247.1034616537@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nandrews@investsystems.co.uk, teo@flex.ro
  Subject: Re: GD global data array capabilities in pltcl
  In-Reply-To: <17247.1034616537@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox