Re: SELECT INTO TABLE busted?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: SELECT INTO TABLE busted?
Date: 1999-02-05 05:26:58
Message-ID: 199902050526.AAA27375@candle.pha.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.)

Very likely the TEMP table stuff, though I think the changes only take
affect when you do a temp table. I am passing the create_view
regression test here.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-02-05 05:27:22 Re: SELECT INTO TABLE busted?
Previous Message Tom Lane 1999-02-05 04:53:37 SELECT INTO TABLE busted?