Re: grouping treated as keyword in function return table

From: Mike Porter <mike(at)udel(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: grouping treated as keyword in function return table
Date: 2016-07-12 17:13:51
Message-ID: alpine.OSX.2.20.1607121312040.45959@qbp.aff.hqry.rqh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 12 Jul 2016, Tom Lane wrote:
> Mike Porter <mike(at)udel(dot)edu> writes:
>> On Tue, 12 Jul 2016, Tom Lane wrote:
>>> Only since 9.5, because GROUPING wasn't a keyword before that.
>>> Sure you're using 9.5 pg_dump?
>
>> My notes say so.
>> /usr/local/postgresql-9.5.3/bin/pg_dumpall -h a.server -U postgres > 9.5.3.sql
>
> Hm, is the source server 9.5? I think that the TABLE clause is actually
> generated server-side in this case.

The source server is 9.3.5 (9.3...)

> When you're making a dump you intend to load into a different server
> version, we recommend using --quote-all-identifiers to make sure you're
> not blindsided by identifiers that have become reserved words in the
> newer server version.

Great advice. Thanks, Mike

>
> regards, tom lane
>

-
Mike Porter
PGP Fingerprint: F4 AE E1 9F 67 F7 DA EA 2F D2 37 F3 99 ED D1 C2

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message david 2016-07-12 17:58:55 BUG #14245: Segfault on weird to_tsquery
Previous Message Tom Lane 2016-07-12 16:58:20 Re: grouping treated as keyword in function return table