Re: date with month and year - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: date with month and year
Date
Msg-id 20150522040427.GU5885@postgresql.org
Whole thread Raw
In response to Re: date with month and year  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: date with month and year  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Adrian Klaver wrote:

> SELECT
>     extract (
>         YEAR
>     FROM
>         school_day ) AS YEAR,

> Reformatting courtesy of pgFormatter(http://sqlformat.darold.net/).

FWIW I think this indenting of FROM inside an extract() call is odd and
ugly --- probably just an accident resulting from dealing with the
regular FROM clause.  It seems to me that the "YEAR FROM school_day"
part should be considered a single argument instead of breaking it in
multiple lines.

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


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: date with month and year
Next
From: Adrian Klaver
Date:
Subject: Re: date with month and year