SELECT INTO TABLE busted?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: SELECT INTO TABLE busted?
Date: 1999-02-05 04:53:37
Message-ID: 17061.918190417@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've been seeing the following behavior with the CVS sources for the
last several days:

$ psql regression
regression=> SELECT * INTO TABLE ramp FROM road ;
SELECT
regression=> \d ramp
Couldn't find table ramp!
regression=> SELECT * INTO TABLE ramp FROM road ;
ERROR: ramp relation already exists
regression=> SELECT * FROM ramp ;
< works fine, produces plenty of output... >

If you exit psql and start a new session, "ramp" has disappeared
entirely. This is causing the create_view regression test to fail,
since it depends on a table made like this in a prior test.

My guess is that this is an unwanted side effect of the "temp table"
code. Is anyone else seeing the same, or am I looking for a
platform-specific bug? (gcc 2.7.2.2 on HPUX 9.03, for the record.)

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-02-05 05:26:58 Re: SELECT INTO TABLE busted?
Previous Message Bruce Momjian 1999-02-05 04:26:36 Re: [HACKERS] Adding some const keywords to external interfaces