Re: [HACKERS] select count(*) from <empty table>: 0 rows or 1 rows ?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] select count(*) from <empty table>: 0 rows or 1 rows ?
Date: 1999-05-31 16:11:22
Message-ID: 199905311611.MAA21557@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> discovery=> select count(*) from publications;
> count
> -----
> 0
> (1 row)
>
> Does 1 rows is a correct result ?
>
> Oleg

One row is returned, and that row is zero. It is correct.

--
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-05-31 16:12:01 Re: [HACKERS] Backend sent 0x45 type while idle
Previous Message Mark Volpe 1999-05-31 15:46:56 New IP address datatype