Re: CTTAS w/ DISTINCT ON crashes backend

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CTTAS w/ DISTINCT ON crashes backend
Date: 2004-01-22 01:02:13
Message-ID: 400F2115.9010406@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:

>The crash I'm getting can be boiled down to this:
>
>regression=# create table fooey(f1 int) without oids;
>CREATE TABLE
>regression=# insert into fooey values(11);
>INSERT 0 1
>regression=# create temp table fooey2 as select distinct * from fooey;
>server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
>The connection to the server was lost. Attempting reset: Failed.
>!>
>
>I'm getting an Assert failure, which no doubt detects the problem much
>sooner than you were doing. The problem is in adding OIDs to rows that
>initially did not have 'em when returned from the SELECT DISTINCT plan.
>
>
Okay.

>So your best immediate workaround is to create the first temp table with
>oids, or create the second one without.
>
>
Thanks!

Mike Mascari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adam Ruth 2004-01-22 01:07:29 Re: SCO Extortion
Previous Message Tom Lane 2004-01-22 00:29:16 Re: CTTAS w/ DISTINCT ON crashes backend

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-01-22 04:15:44 Bunch o' dead code in GEQO
Previous Message Tom Lane 2004-01-22 00:29:16 Re: CTTAS w/ DISTINCT ON crashes backend