Re: [SQL] parse error in create index

2001-02-12 Thread Tom Lane
Hubert Palme <[EMAIL PROTECTED]> writes: > adressen=> CREATE INDEX xxx ON geburtstage (geb_monat(geburtstag)); > ERROR: DefineIndex: (null) class not found > adressen=> Apparently you're using 6.5 or older ... I'd recommend updating! IIRC, in <= 6.5 you *must* specify an operator class for a fu

Re: [SQL] parse error in create index

2001-02-12 Thread Hubert Palme
Stephan Szabo wrote: > > Functional indexes cannot currently take constant values to the function, > so it's complaining about the constant 'month'. The current workaround is > probably to create a function that does the date_part('month', ) for > you and then use that function in the index crea

Re: [SQL] parse error in create index

2001-02-12 Thread Hubert Palme
Stephan Szabo wrote: > > Functional indexes cannot currently take constant values to the function, > so it's complaining about the constant 'month'. The current workaround is > probably to create a function that does the date_part('month', ) for > you and then use that function in the index crea

Re: [SQL] parse error in create index

2001-02-12 Thread Hubert Palme
Stephan Szabo wrote: > > Functional indexes cannot currently take constant values to the function, > so it's complaining about the constant 'month'. The current workaround is > probably to create a function that does the date_part('month', ) for > you and then use that function in the index crea

Re: [SQL] parse error in create index

2001-02-08 Thread Stephan Szabo
You can use two quote characters to get a single quote in the quoted string, so ''month'' On Thu, 8 Feb 2001, Hubert Palme wrote: > Stephan Szabo wrote: > > > > Functional indexes cannot currently take constant values to the function, > > so it's complaining about the constant 'month'. The cu

Re: [SQL] parse error in create index

2001-02-06 Thread Stephan Szabo
Functional indexes cannot currently take constant values to the function, so it's complaining about the constant 'month'. The current workaround is probably to create a function that does the date_part('month', ) for you and then use that function in the index creation. On Sat, 3 Feb 2001, Hube

[SQL] parse error in create index

2001-02-06 Thread Hubert Palme
Hi, could someone, please, explain me the following parse error? adressen=> \d geburtstage Table= geburtstage +--+--+---+ | Field | Type| Length| +-