pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Labouisse <christophe.labouisse@dial.oleane.com>
To: pgsql-sql@postgreSQL.org
Subject: Index on date_trunc
Date: 22 Apr 1999 22:21:49 +0200
Message-ID: <m3r9pcbe3m.fsf@gabuzo.meunet> (raw)

I'm trying to index on a part of a datetime field. I tried the
following statement :

create index ns_dt1_idx on netstats (date_trunc('day',NS_DATE) datetime_ops);

It doesn't work and I get :

ERROR:  parser: parse error at or near "'"

Any idea ?


-- 
Christophe Labouisse : Cinéma, typographie, Unix
christophe.labouisse@dial.oleane.com http://www.multimania.com/gabuzo/
Le cinéma en Lumière : http://www.lumiere.org/



view thread (5+ messages)  latest in thread

Message-ID: <m3r9pcbe3m.fsf@gabuzo.meunet>
Permalink:  ../m3r9pcbe3m.fsf@gabuzo.meunet/
Also on:    postgresql.org/message-id/m3r9pcbe3m.fsf@gabuzo.meunet

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: christophe.labouisse@dial.oleane.com
  Subject: Re: Index on date_trunc
  In-Reply-To: <m3r9pcbe3m.fsf@gabuzo.meunet>
  References: <m3r9pcbe3m.fsf@gabuzo.meunet>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox