Re: share info between backends - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: share info between backends
Date
Msg-id 63452.24.211.165.134.1168601084.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: share info between backends  ("Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>)
List 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




pgsql-hackers by date:

Previous
From: Mario Weilguni
Date:
Subject: to_char not IMMUTABLE?
Next
From: Gregory Stark
Date:
Subject: Re: [PERFORM] unusual performance for vac following 8.2upgrade