Re: pgindent - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pgindent
Date
Msg-id 20160427155717.GL13058@momjian.us
Whole thread Raw
In response to Re: pgindent  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: pgindent  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Apr 27, 2016 at 11:51:42AM -0400, Robert Haas wrote:
> >> It mostly just adds new typedefs that have
> >> appeared over the last year, but it also realphabetizes the file -
> >> some things that were added incrementally seem to have ended up in
> >> what is, at least according to what sort likes to do on my machine,
> >> the wrong place in the file.
> >
> > Is it just me, or is the sort order in that file a bit confusing? The
> > whole thing about upper and lower case being separated seems to make it
> > much harder than necessary to manually insert something in the right
> > place..
> 
> Except for recently-manually-added entries, it seems to match what
> sort wants to do on my system exactly.  Which seems good.

Well, sort ordering is all related to your collation setting:
$ echo "a> A" | LC_COLLATE="" sortaA$ echo "aA" | LC_COLLATE="en_US" sortAa

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pgindent
Next
From: Robert Haas
Date:
Subject: Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.