Hi.
I have a table which represents clients' sessions / orders.
CREATE TABLE sessions (
id INTEGER NOT NULL DEFAULT nextval('sessions_seq'),
...
finishedTIMESTAMP,
bl_confirmedBOOL NOT NULL DEFAULT false,
bl_sent BOOL NOT NULL DEFAULT false,
Denis Perchine <[EMAIL PROTECTED]> writes:
> is it possible to create functional indices with constant params?
> create index ix_s_m on stats(date_part('month', sent_date));
No.
> If it is not possible is there any workarounds for this?
Sure: make your own function that does what you want with
Hello,
is it possible to create functional indices with constant params?
I tried to do
create index ix_s_m on stats(date_part('month', sent_date));
And get
ERROR: parser: parse error at or near "'"
If it is not possible is there any workarounds for this?
--
Sincerely Yours,
Denis Perchine
Hello,
After some experimentation in pgsql, I would like to understand the
following:
1. Why can't functions for functional indices be defined in plpgsql
(nothing stops you from doing this in pltcl)?
2. Have I missed something, or are constants and constant expressions
not supoported in mutipl