Re: count(*) of zero rows returns 1 - Mailing list pgsql-hackers

From Shaun Thomas
Subject Re: count(*) of zero rows returns 1
Date
Msg-id 50F5AD7C.2070601@optionshouse.com
Whole thread Raw
In response to Re: count(*) of zero rows returns 1  (Bruce Momjian <bruce@momjian.us>)
Responses Re: count(*) of zero rows returns 1
List pgsql-hackers
On 01/15/2013 01:18 PM, Bruce Momjian wrote:

>> AFAICR, 'dual' table has one column named 'DUMMY' and one row with
>> value, single character X.
>
> How elegant.  :-(

Let's see what EnterpriseDB produces:

test=> select * from dual;
 dummy
------- X
(1 row)

Yep, elegant gets my vote. ;) But then again, Oracle also created 
VARCHAR2 and told everyone to start using that, just in case they ever 
modified VARCHAR to be SQL compliant. Thankfully we have you guys, so PG 
won't go down a similar route.

-- 
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas@optionshouse.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCH] COPY .. COMPRESSED
Next
From: Bruce Momjian
Date:
Subject: Re: pg_ctl idempotent option