From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Chris Travers <chris(dot)travers(at)gmail(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: select ... inherits? |
Date: | 2013-11-13 13:43:23 |
Message-ID: | 2451.1384350203@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Chris Travers <chris(dot)travers(at)gmail(dot)com> writes:
> I came across a query someone posted in the form of:
> SELECT *
> FROM [table_list]
> INHERITS ([table_list]);
> Naturally, never having seen this before I consulted the docs and there was
> nothing there that I could find. So I ran some tests and the syntax seems
> supported.
There's no such syntax in Postgres. It's hard to be sure without seeing
the query you actually ran, but I'm betting the parser thought that
INHERITS was a table alias and the stuff inside parens column aliases.
(Whoever decided that AS should be optional in SQL aliases was a fool.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gabriel Sánchez Martínez | 2013-11-13 13:46:40 | Re: Partitioned table question |
Previous Message | Torsten Förtsch | 2013-11-13 13:26:39 | Re: Partitioned table question |