Re: [GENERAL] valid use of wildcard

2008-11-03 Thread Irene Barg
The 'real' problem was the database had not been re-indexed in a long while (it is a test system). After re-indexing the db, the query below ran fairly quicky: metadata=# SELECT * FROM viewspace.siap AS t WHERE t."startDate"='2008-10-27%' AND t.prop_id LIKE '%' LIMIT 1000; The 'startDate' i

Re: [GENERAL] valid use of wildcard

2008-10-29 Thread Tom Lane
Klint Gore <[EMAIL PROTECTED]> writes: > Surprisingly, '2008-10-27%' casts to a date in 8.3.3. Yeah, the datetime input code is pretty willing to overlook unexpected punctuation. There are enough odd formats out there that I'm not sure tightening it up would be a good idea.

Re: [GENERAL] valid use of wildcard

2008-10-29 Thread Klint Gore
Scott Marlowe wrote: On Wed, Oct 29, 2008 at 5:04 PM, Irene Barg <[EMAIL PROTECTED]> wrote: > Hi, > > Is the following query a valid use of the 'wildcard' in (='2008-10-27%')? > >> [EMAIL PROTECTED] arcsoft]$ psql metadata >> Password: Welcome to psql 8.1.9, the PostgreSQL interactive terminal. >

Re: [GENERAL] valid use of wildcard

2008-10-29 Thread Scott Marlowe
On Wed, Oct 29, 2008 at 5:04 PM, Irene Barg <[EMAIL PROTECTED]> wrote: > Hi, > > Is the following query a valid use of the 'wildcard' in (='2008-10-27%')? > >> [EMAIL PROTECTED] arcsoft]$ psql metadata >> Password: Welcome to psql 8.1.9, the PostgreSQL interactive terminal. >> >> metadata=# SELECT