Re: Custom column ordering

From: Emre Hasegeli <emre(at)hasegeli(dot)com>
To: Steven Xu <stevenx(at)yorku(dot)ca>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Custom column ordering
Date: 2016-03-07 15:41:53
Message-ID: CAE2gYzzoDo4jT0ioQYepcwdxOJoUe5xP7-wK5uYEYSWnBRNr_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Although, I do find your output very strange. You wrote ORDER BY port, which
> is a text type. Why does Postgres order using the ordering operators of the
> "Port" data type rather than the "text" type, even though you haven't
> performed a cast?

That is an editing mistake. I mean

> hasegeli=# SELECT port FROM device_port ORDER BY cast_to_port(port);

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Geoff Winkless 2016-03-07 15:43:28 Re: index problems (again)
Previous Message Adrian Klaver 2016-03-07 15:35:29 Re: Re: "missing chunk number XX for toast value YY in pg_toast ..." after pg_basebackup.