pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBug fix confirmation: could not open relation with OID nnn
2+ messages / 2 participants
[nested] [flat]
* Bug fix confirmation: could not open relation with OID nnn
@ 2014-07-10 11:21 Aryeh Leib Taurog <vim@aryehleib.com>
2014-07-30 17:48 ` Re: Bug fix confirmation: could not open relation with OID nnn Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 2+ messages in thread
From: Aryeh Leib Taurog @ 2014-07-10 11:21 UTC (permalink / raw)
To: pgsql-bugs
I'd like to do the following for large frequent updates on central
table with ~1m rows:
1. Create new table like original
2. Populate new table
3. DROP original table
4. RENAME new table to original
Some testing revealed that in pg 8.4 and 9.1, if another session
queries the table between 3 and 4, the query fails with error 'could
not open relation with OID nnn.' In pg 9.3 there's no error.
<https://gist.github.com/altaurog/ab0019837719d2a93e6b;
This seems to be the topic of conversation here:
<http://www.postgresql.org/message-id/flat/12791.1310599941@sss.pgh.pa.us#12791.1310599941@sss.pgh.pa...;
<http://www.postgresql.org/message-id/flat/20285.1340769074@sss.pgh.pa.us#20285.1340769074@sss.pgh.pa...;
Do I correctly infer that the change in behavior was an intentional
fix and that with pg >= 9.3 I can rely on the above method working
without any risk of this error in my queries?
Much appreciated,
Aryeh Leib Taurog
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Bug fix confirmation: could not open relation with OID nnn
2014-07-10 11:21 Bug fix confirmation: could not open relation with OID nnn Aryeh Leib Taurog <vim@aryehleib.com>
@ 2014-07-30 17:48 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2014-07-30 17:48 UTC (permalink / raw)
To: Aryeh Leib Taurog <vim@aryehleib.com>; +Cc: pgsql-bugs
On Thu, Jul 10, 2014 at 02:21:57PM +0300, Aryeh Leib Taurog wrote:
> I'd like to do the following for large frequent updates on central
> table with ~1m rows:
>
> 1. Create new table like original
> 2. Populate new table
> 3. DROP original table
> 4. RENAME new table to original
>
> Some testing revealed that in pg 8.4 and 9.1, if another session
> queries the table between 3 and 4, the query fails with error 'could
> not open relation with OID nnn.' In pg 9.3 there's no error.
> <https://gist.github.com/altaurog/ab0019837719d2a93e6b;
>
> This seems to be the topic of conversation here:
> <http://www.postgresql.org/message-id/flat/12791.1310599941@sss.pgh.pa.us#12791.1310599941@sss.pgh.pa...;
> <http://www.postgresql.org/message-id/flat/20285.1340769074@sss.pgh.pa.us#20285.1340769074@sss.pgh.pa...;
>
> Do I correctly infer that the change in behavior was an intentional
> fix and that with pg >= 9.3 I can rely on the above method working
> without any risk of this error in my queries?
Yes, I think so.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-07-30 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-07-10 11:21 Bug fix confirmation: could not open relation with OID nnn Aryeh Leib Taurog <vim@aryehleib.com>
2014-07-30 17:48 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox