Multiple TO version in ALTER EXTENSION UPDATE

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Multiple TO version in ALTER EXTENSION UPDATE
Date: 2017-03-29 15:13:42
Message-ID: CE053BD2-494C-44B1-9A3B-7E112E185FE5@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While reading I noticed that we allow multiple TO <version> in ALTER EXTENSION
UPDATE, and defer throwing a syntax error until command processing. Is there a
reason for deferring and not handling it in gram.y directly as in the attached
patch since it is in fact a syntax error? It yields a different error message
to the user, but makes for easier to read code (IMH-and-biased-O).

cheers ./daniel

Attachment Content-Type Size
extension_update_syntax.patch application/octet-stream 2.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stas Kelvich 2017-03-29 15:55:13 Re: logical decoding of two-phase transactions
Previous Message Simon Riggs 2017-03-29 15:13:35 Re: Logical decoding on standby