Re: Error in ORDER BY on check constraints in psql - Mailing list pgsql-patches

From Christopher Kings-Lynne
Subject Re: Error in ORDER BY on check constraints in psql
Date
Msg-id 43572B16.3020806@familyhealth.com.au
Whole thread Raw
In response to Re: Error in ORDER BY on check constraints in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
> That was probably done deliberately, back in the day when constraints
> tended to have uselessly random names like "$1" --- sorting by the
> constraint text was more helpful.  I agree that now sorting by name
> seems like the better thing.

Even in the "$x" case, it's better to have them sorted in that order
(ie. the order they were created...)

> I think there's nothing wrong with the "ORDER BY 1" part ... it's the
> fact that the columns are selected in a different order than they'll
> be used that seems bizarre to me.  I fixed it like this instead.

Ah, the way that requires effort :)


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error in ORDER BY on check constraints in psql
Next
From: David Fetter
Date:
Subject: Re: Caveat for Domains