Re: Contrib -- PostgreSQL shared variables

From: Rick Gigger <rick(at)alpinenetworking(dot)com>
To: pgsql(at)mohawksoft(dot)com
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Contrib -- PostgreSQL shared variables
Date: 2004-08-25 21:22:30
Message-ID: 412D0316.7060600@alpinenetworking.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

LockShared('name');

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.
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-08-25 21:35:02 Re: printing HeapTuple
Previous Message pgsql 2004-08-25 21:15:28 Contrib -- PostgreSQL shared variables

Browse pgsql-patches by date

  From Date Subject
Next Message Ed L. 2004-08-25 21:26:29 log_line_prefix additions
Previous Message pgsql 2004-08-25 21:15:28 Contrib -- PostgreSQL shared variables