Re: LinuxTag wrapup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LinuxTag wrapup
Date
Msg-id 17410.1088996262@sss.pgh.pa.us
Whole thread Raw
In response to Re: LinuxTag wrapup  (Justin Clift <jc@telstra.net>)
Responses Re: LinuxTag wrapup
List pgsql-hackers
Justin Clift <jc@telstra.net> writes:
> There's also their "FROM DUAL" workaround (in common usage) as well.

[ yawn... ]

regression=# create table dual();
CREATE TABLE
regression=# insert into dual default values;  
INSERT 292940 1
regression=# select 2+2 from dual;?column? 
----------       4
(1 row)

Anyone who needs this has always been able to make it trivially
(though you once had to invent a random column name for the one
required column).

Does anyone have the foggiest idea why they named it DUAL?  Doesn't
seem a very mnemonic choice to me...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Nested Transactions, Abort All
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Adding column comment to information_schema.columns