Re: Bug in PostrgeSQL 8.0beta

From: "Alexander Zhiltsov" <ayz(at)ems(dot)ru>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bug in PostrgeSQL 8.0beta
Date: 2004-10-06 06:55:13
Message-ID: 021e01c4ab71$6e1aa2b0$2742a8c0@office.ems.chel.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thank you for the response.

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> I'm not convinced this is really a bug, because pg_index.indexprs is not
> an expression (it's a list of expressions) and so it's not clear that
> pg_get_expr should be expected to work on it. What result were you
> expecting to get?

Yes, probably it is not a bug, but only a difference in behavior of function
pg_get_expr in versions 7.4 and 8.0.
Server 7.4 returns readable representation of index expressions that are
combined by 'AND'.

Isn't it planned to implement the same behavior of the function in 8.0?

Alexander

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alexander Zhiltsov" <ayz(at)ems(dot)ru>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Sent: Friday, October 01, 2004 9:20 PM
Subject: Re: [BUGS] Bug in PostrgeSQL 8.0beta

> "Alexander Zhiltsov" <ayz(at)ems(dot)ru> writes:
> > Executing the following query return an error 'ERROR: unrecognized node
ty=
> > pe: 656'.
> > SELECT pg_get_expr(i.indexprs, i.indrelid) AS expr
> > FROM pg_index i
> > INNER JOIN pg_class c ON i.indrelid =3D c.oid
> > WHERE c.relname =3D 'art'
>
> I'm not convinced this is really a bug, because pg_index.indexprs is not
> an expression (it's a list of expressions) and so it's not clear that
> pg_get_expr should be expected to work on it. What result were you
> expecting to get?
>
> regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Devrim GUNDUZ 2004-10-06 09:10:28 Possible bug in 7.4.5
Previous Message Andrew Dunstan 2004-10-05 23:56:57 Re: pg_dumpall bug in PG 8.0b3 Win32 port