Re: ERROR: invalid value "????" for "YYYY"

From: Rowan Collins <rowan(dot)collins(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: invalid value "????" for "YYYY"
Date: 2013-10-08 22:07:25
Message-ID: 5254821D.6050007@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/10/2013 23:03, Rowan Collins wrote:
> With tables_with_dates As (
> select table_name, to_date(right(table_name, 8), 'YYYYMMDD') blah
> from information_schema.tables
> where table_schema = '????'
> and table_catalog = '????'
> )
> Select table_name, blah
> Where blah > '2013-01-01'::date

Oops, there should be a "From tables_with_dates" in there, obviously :|
--
Rowan Collins
[IMSoP]

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gabriel E. Sánchez Martínez 2013-10-08 22:47:16 Re: Many thousands of partitions
Previous Message Rowan Collins 2013-10-08 22:03:50 Re: ERROR: invalid value "????" for "YYYY"