Re: temp tables ORACLE/PGSQL

From: Neil Conway <neilc(at)samurai(dot)com>
To: Dennis Sacks <dennis(at)illusions(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: temp tables ORACLE/PGSQL
Date: 2005-04-30 04:48:14
Message-ID: 42730E0E.6090706@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dennis Sacks wrote:
> The disadvantage is, you'll have to have some process for deleting
> old data from the table, as it will stay around and it will bite you
> when you get the same pg_backend_pid() again down the road.

Rather than use pg_backend_id(), why not just assign session IDs from a
sequence? You would still get the problem of stale session data so you'd
probably still want a periodic cleaner process, but you won't need to
worry about session ID collision.

-Neil

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mmiranda 2005-04-30 05:03:22 Re: the eternal tunnig question
Previous Message mmiranda 2005-04-30 04:44:53 Re: Fatal error