Skip site navigation (1) Skip section navigation (2)

Contrib -- PostgreSQL shared variables

From: pgsql(at)mohawksoft(dot)com
To: pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Contrib -- PostgreSQL shared variables
Date: 2004-08-25 21:15:28
Message-ID: 17168.24.91.171.78.1093468528.squirrel@mail.mohawksoft.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
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.

Attachment: sharedvar.tgz
Description: application/unix-tar (4.2 KB)

Responses

pgsql-hackers by date

Next:From: Rick GiggerDate: 2004-08-25 21:22:30
Subject: Re: Contrib -- PostgreSQL shared variables
Previous:From: Bruce MomjianDate: 2004-08-25 21:10:30
Subject: Re: [COMMITTERS] pgsql-server: Rearrange pg_subtrans handling

pgsql-patches by date

Next:From: Rick GiggerDate: 2004-08-25 21:22:30
Subject: Re: Contrib -- PostgreSQL shared variables
Previous:From: Tom LaneDate: 2004-08-25 20:11:26
Subject: Re: add hint

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group