pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve error checking of CREATE COLLATION options.
Date: Sun, 18 Jul 2021 10:11:11 +0000
Message-ID: <E1m53lP-0006SR-B8@gemulon.postgresql.org> (raw)

Improve error checking of CREATE COLLATION options.

Check for conflicting or redundant options, as we do for most other
commands. Specifying any option more than once is at best redundant,
and quite likely indicates a bug in the user's code.

While at it, improve the error for conflicting locale options by
adding detail text (the same as for CREATE DATABASE).

Bharath Rupireddy, reviewed by Vignesh C. Some additional hacking by
me.

Discussion: https://postgr.es/m/CALj2ACWtL6fTLdyF4R_YkPtf1YEDb6FUoD5DGAki3rpD+sWqiA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ba620760c4c8ca90ff83ecf7e4d46f5ec4dabd7b

Modified Files
--------------
src/backend/commands/collationcmds.c  | 17 +++++++++----
src/test/regress/expected/collate.out | 47 +++++++++++++++++++++++++++++++++++
src/test/regress/sql/collate.sql      | 21 ++++++++++++++++
3 files changed, 80 insertions(+), 5 deletions(-)



Message-ID: <E1m53lP-0006SR-B8@gemulon.postgresql.org>
Permalink:  ../E1m53lP-0006SR-B8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m53lP-0006SR-B8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dean.a.rasheed@gmail.com
  Subject: Re: pgsql: Improve error checking of CREATE COLLATION options.
  In-Reply-To: <E1m53lP-0006SR-B8@gemulon.postgresql.org>
  References: <E1m53lP-0006SR-B8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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