Re: Pg (Perl for Postgresql)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Laurette Cisneros <laurette(at)nextbus(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Pg (Perl for Postgresql)
Date: 2002-12-19 23:59:48
Message-ID: 10058.1040342388@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Laurette Cisneros <laurette(at)nextbus(dot)com> writes:
> The column and the table are named the same:
> select x, y from y;

> In 7.3 it gives the error message:
> ERROR: You can't use relation names alone in the target list, try relation.*.

> It works fine in 7.2

Hm, there must be more to it than meets the eye, because that condition
alone doesn't cause a problem:

regression=# create table y (x int, y int);
CREATE TABLE
regression=# select x, y from y;
x | y
---+---
(0 rows)

How did you declare the table, exactly?

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Badger 2002-12-20 02:25:16 MD5 PasswordPacket
Previous Message Laurette Cisneros 2002-12-19 23:51:22 Re: Pg (Perl for Postgresql)