Re: share info between backends

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
Cc: "Jaime Casanova" <systemguards(at)gmail(dot)com>, "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "Pgsql Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: share info between backends
Date: 2007-01-12 11:24:44
Message-ID: 63452.24.211.165.134.1168601084.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zeugswetter Andreas ADI SD wrote:
>
>> > > comments?
>> >
>> > Why not make it probabilistic by using, say, MyProcPid % n where n
> is the
>> > number of tablespaces? Then you don't need anything shared.
>
> You still want a (local) counter, so that temp files for one session are
> spread out.
>

Yes, but this can be used as a seed so not all backends start with the
same counter value.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Amiel 2007-01-12 12:28:05 Re: Corrupt database? 8.1/FreeBSD6.0
Previous Message Mario Weilguni 2007-01-12 10:55:07 to_char not IMMUTABLE?