Re: share info between backends

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: "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 02:19:06
Message-ID: c2d9e70e0701111819p1e719a19j6049114942583f2d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1/11/07, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Jaime Casanova wrote:
> >
> > i'm trying to fix a problem related to the patch Albert sent in
> > october (Tablespace for temporary objects and sort files)
> > http://archives.postgresql.org/pgsql-patches/2006-10/msg00141.php
> > http://archives.postgresql.org/pgsql-patches/2007-01/msg00063.php
> >
> > after reviewing this i notice this will not use different tablespaces
> > in the case of having various connections all with just one temp
> > table:
> > http://archives.postgresql.org/pgsql-patches/2007-01/msg00188.php
> >
> > what i'm trying to do it is share what's the next_temp_tablespace to
> > use...
> > the other way to do this is as you say using tables, but i don't think
> > this is a good idea in this case...
> >
> > 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.
>

mmm... is not great to try to kill flies with tanks? ;)
thanks for the idea, i will try it

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Amiel 2007-01-12 02:50:41 Corrupt database? 8.1/FreeBSD6.0
Previous Message Christopher Kings-Lynne 2007-01-12 02:07:38 Re: PANIC: block 463 unfound during REDO after out of