[BUGS] Bug with temporary child of a permanent table after recovery

2012-12-14 Thread Heikki Linnakangas
Spotted by accident while working on a patch: Open psql and do: CREATE TABLE uctest(f1 int, f2 text); -- Create a temporary child of the permanent table CREATE TEMP TABLE ucchild () inherits (uctest); In another terminal: pg_ctl stop -m immediate pg_ctl start psql (9.3devel) Type "help" for he

Re: [BUGS] BUG #7752: FATAL btree error on PITR

2012-12-14 Thread Simon Riggs
On 12 December 2012 01:55, wrote: > The following bug has been logged on the website: > > Bug reference: 7752 > Logged by: Maciek Sakrejda > Email address: m.sakre...@gmail.com > PostgreSQL version: 9.1.6 > Operating system: Ubuntu 10.04 LTS 64-bit > Description: > > Ran into

Re: [BUGS] Bug with temporary child of a permanent table after recovery

2012-12-14 Thread Tom Lane
Heikki Linnakangas writes: > Spotted by accident while working on a patch: > Open psql and do: > CREATE TABLE uctest(f1 int, f2 text); > -- Create a temporary child of the permanent table > CREATE TEMP TABLE ucchild () inherits (uctest); > In another terminal: > pg_ctl stop -m immediate > pg_ctl

Re: [BUGS] Bug with temporary child of a permanent table after recovery

2012-12-14 Thread Tom Lane
I wrote: > I'm not sure where rd_backend gets set up, but maybe we can fix this > by not allowing rd_backend to acquire a valid value unless we've begun > using the temp namespace. The key bit of code seems to be this in RelationBuildDesc(): switch (relation->rd_rel->relpersistence) .

Re: [BUGS] Bug with temporary child of a permanent table after recovery

2012-12-14 Thread Jeff Davis
On Fri, 2012-12-14 at 17:56 -0500, Tom Lane wrote: > Perhaps a better idea is to not overload rd_backend to serve both > the "physical name of file" purpose and the "is it my temp table" > purpose. We could add an additional relcache field with the > three possible states "not temp, my temp, someb

[BUGS] BUG #7754: Contrib start scipt comment refers to dead URL

2012-12-14 Thread pg-gts
The following bug has been logged on the website: Bug reference: 7754 Logged by: Gavan Schneider Email address: pg-...@snkmail.com PostgreSQL version: 9.2.2 Operating system: OSX Description: FILE: postgresql-9.2.2/contrib/start-scripts/osx/PostgreSQL ; and many p