Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group