pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRowDescription message
5+ messages / 4 participants
[nested] [flat]
* RowDescription message
@ 2019-10-07 08:00 Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 09:27 ` Re: RowDescription message Andres Freund <andres@anarazel.de>
2019-10-07 15:49 ` Re: RowDescription message Wim Bertels <wim.bertels@ucll.be>
0 siblings, 2 replies; 5+ messages in thread
From: Tatsuo Ishii @ 2019-10-07 08:00 UTC (permalink / raw)
To: pgsql-general
According to the manualof RowDescription message
https://www.postgresql.org/docs/12/protocol-message-formats.html
Specifies the number of fields in a row (can be zero).
Does 0 fields could actually happen?
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: RowDescription message
2019-10-07 08:00 RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
@ 2019-10-07 09:27 ` Andres Freund <andres@anarazel.de>
2019-10-07 12:52 ` Re: RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
1 sibling, 1 reply; 5+ messages in thread
From: Andres Freund @ 2019-10-07 09:27 UTC (permalink / raw)
To: Tatsuo Ishii <ishii@sraoss.co.jp>; +Cc: pgsql-general
Hi,
On 2019-10-07 17:00:24 +0900, Tatsuo Ishii wrote:
> According to the manualof RowDescription message
> https://www.postgresql.org/docs/12/protocol-message-formats.html
>
> Specifies the number of fields in a row (can be zero).
>
> Does 0 fields could actually happen?
Yes, e.g.:
SELECT;
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: RowDescription message
2019-10-07 08:00 RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 09:27 ` Re: RowDescription message Andres Freund <andres@anarazel.de>
@ 2019-10-07 12:52 ` Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 13:32 ` Re: RowDescription message Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: Tatsuo Ishii @ 2019-10-07 12:52 UTC (permalink / raw)
To: andres@anarazel.de; +Cc: pgsql-general
>> According to the manualof RowDescription message
>> https://www.postgresql.org/docs/12/protocol-message-formats.html
>>
>> Specifies the number of fields in a row (can be zero).
>>
>> Does 0 fields could actually happen?
>
> Yes, e.g.:
>
> SELECT;
Thanks. Is it a valid SQL statement according to the standard?
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: RowDescription message
2019-10-07 08:00 RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 09:27 ` Re: RowDescription message Andres Freund <andres@anarazel.de>
2019-10-07 12:52 ` Re: RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
@ 2019-10-07 13:32 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2019-10-07 13:32 UTC (permalink / raw)
To: Tatsuo Ishii <ishii@sraoss.co.jp>; +Cc: andres@anarazel.de; pgsql-general
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
>>> According to the manualof RowDescription message
>>> https://www.postgresql.org/docs/12/protocol-message-formats.html
>>> Specifies the number of fields in a row (can be zero).
>>> Does 0 fields could actually happen?
>> Yes, e.g.:
>> SELECT;
> Thanks. Is it a valid SQL statement according to the standard?
See select.sgml:
<refsect2>
<title>Empty <literal>SELECT</literal> Lists</title>
<para>
The list of output expressions after <literal>SELECT</literal> can be
empty, producing a zero-column result table.
This is not valid syntax according to the SQL standard.
<productname>PostgreSQL</productname> allows it to be consistent with
allowing zero-column tables.
However, an empty list is not allowed when <literal>DISTINCT</literal> is used.
</para>
</refsect2>
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: RowDescription message
2019-10-07 08:00 RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
@ 2019-10-07 15:49 ` Wim Bertels <wim.bertels@ucll.be>
1 sibling, 0 replies; 5+ messages in thread
From: Wim Bertels @ 2019-10-07 15:49 UTC (permalink / raw)
To: Tatsuo Ishii <ishii@sraoss.co.jp>; pgsql-general
Or
CREATE TABLE t();
SELECT *
FROM t;
________________________________
Van: Tatsuo Ishii <ishii@sraoss.co.jp>
Verzonden: maandag 7 oktober 2019 10:00
Aan: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Onderwerp: RowDescription message
According to the manualof RowDescription message
https://www.postgresql.org/docs/12/protocol-message-formats.html
Specifies the number of fields in a row (can be zero).
Does 0 fields could actually happen?
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-10-07 15:49 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 08:00 RowDescription message Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 09:27 ` Andres Freund <andres@anarazel.de>
2019-10-07 12:52 ` Tatsuo Ishii <ishii@sraoss.co.jp>
2019-10-07 13:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-10-07 15:49 ` Wim Bertels <wim.bertels@ucll.be>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox