pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Сергей Черкашин <s.cherkashin@postgrespro.ru>
To: Nikita Glukhov <n.gluhov@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org, Alexander Korotkov <akorotkov@postgresql.org>
Subject: Re: pgsql: Show opclass and opfamily related information in psql
Date: Tue, 12 May 2020 14:09:58 -0400
Message-ID: <20200512180958.GA11266@alvherre.pgsql> (raw)
In-Reply-To: <20200511210856.GA18368@alvherre.pgsql>


I would appreciate opinions from the patch authors on this ordering
change (rationale in previous email).  I forgot to CC Sergei and Nikita.

> diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
> index 8dca6d8bb4..9bd0bf8356 100644
> --- a/src/bin/psql/describe.c
> +++ b/src/bin/psql/describe.c
> @@ -6288,7 +6288,11 @@ listOpFamilyOperators(const char *access_method_pattern,
>  		processSQLNamePattern(pset.db, &buf, family_pattern, have_where, false,
>  							  "nsf.nspname", "of.opfname", NULL, NULL);
>  
> -	appendPQExpBufferStr(&buf, "ORDER BY 1, 2, o.amopstrategy, 3;");
> +	appendPQExpBufferStr(&buf, "ORDER BY 1, 2,\n"
> +						 "  o.amoplefttype = o.amoprighttype DESC,\n"
> +						 "  pg_catalog.format_type(o.amoplefttype, NULL),\n"
> +						 "  pg_catalog.format_type(o.amoprighttype, NULL),\n"
> +						 "  o.amopstrategy;");
>  
>  	res = PSQLexec(buf.data);
>  	termPQExpBuffer(&buf);


-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (7+ messages)  latest in thread

Message-ID: <20200512180958.GA11266@alvherre.pgsql>
Permalink:  ../20200512180958.GA11266@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200512180958.GA11266@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, s.cherkashin@postgrespro.ru, n.gluhov@postgrespro.ru, akorotkov@postgresql.org
  Subject: Re: pgsql: Show opclass and opfamily related information in psql
  In-Reply-To: <20200512180958.GA11266@alvherre.pgsql>
  References: <20200511210856.GA18368@alvherre.pgsql> <20200512180958.GA11266@alvherre.pgsql>

* 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