From: | Jonathan Gardner <jgardner(at)jonathangardner(dot)net> |
---|---|
To: | pgsql(at)mohawksoft(dot)com |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Contrib -- PostgreSQL shared variables |
Date: | 2004-08-27 23:18:32 |
Message-ID: | 200408271618.37394.jgardner@jonathangardner.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 25 August 2004 02:15 pm, pgsql(at)mohawksoft(dot)com wrote:
> This is a first pass on a simple shared memory variable system for
> PostgreSQL. I would appriciate anyone interested in this functionality to
> rip it apart.
>
> It basically adds this functionality:
>
> SetShared('name', value);
> GetSharedInt('name');
> SetSharedText('name);
> RemovedShared('name');
>
> I also added two extra functions that are sort of a kludge, but could be
> very helpful.
>
> AddSharedInt('name', value);
> SubSharedInt('name', value);
>
> These add or subtect the 'value' from the variable and return the result.
I don't see how this is different from "CREATE TABLE shared_variables (name
VARCHAR PRIMARY KEY, value VARCHAR)" and
inserting/updating/deleting/selecting from that. Perhaps these are
per-session shared variables? IN which case, what is the utility if sharing
them across shared memory?
- --
Jonathan Gardner
jgardner(at)jonathangardner(dot)net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFBL8FMqp6r/MVGlwwRAl4KAJ4oC02uGs5IjO0basUCxNPd3/CCqQCfcepL
NLDzKJPINHKK9adjKue2qlQ=
=Z8mP
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Jon Jensen | 2004-08-27 23:36:55 | Re: psql questions: SQL, progname, copyright dates |
Previous Message | Greg Sabino Mullane | 2004-08-27 23:17:32 | psql questions: SQL, progname, copyright dates |
From | Date | Subject | |
---|---|---|---|
Next Message | Ed L. | 2004-08-27 23:20:56 | Re: log_filename_prefix --> log_filename + strftime() |
Previous Message | Greg Sabino Mullane | 2004-08-27 22:50:07 | Show full path name when saving in psql |