Re: postgresql system column errors - Mailing list pgsql-general

From Ashish Mahabal
Subject Re: postgresql system column errors
Date
Msg-id Pine.LNX.4.58.0402171106431.9020@avyakta.caltech.edu
Whole thread Raw
In response to Re: postgresql system column errors  (Mark Gibson <gibsonm@cromwell.co.uk>)
Responses Re: postgresql system column errors  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Thanx Mark.

Thats what I ended up doing. But it seems silly that the name space for
system columns and user columns are not separate. Its just like saying
that you can not have the same column name in 2 different tables.

Just like I can say table1.myCol and table2.myCol, there should have been
a way to say system.xmin and myTable.xmin, the default being myTable.xmin
when I am doing stuff with myTable. Whereever xmin gets used currently,
the source could explicitely say system.xmin. Anyway. hope that is done in
some future version.

Cheers,
-ashish

On Mon, 16 Feb 2004, Mark Gibson wrote:

> Ashish Mahabal wrote:
>
> >Hello Hiroshi,
> >
> >When I try to use the column name xmin in one of my tables I get
> >ERROR:  column name "xmin" conflicts with a system column name
> >
> >You seem to have been affected by these errors in the past too. Had you
> >found a solution?
> >
> >Anybody else have any solutions?
> >
> >
>
> The only thing you can do is change your column name.
>
> The manual tells you about the system columns here:
> http://www.postgresql.org/docs/7.4/static/ddl-system-columns.html
>
> --
> Mark Gibson <gibsonm |AT| cromwell |DOT| co |DOT| uk>
> Web Developer & Database Admin
> Cromwell Tools Ltd.
> Leicester, England.
>

Ashish Mahabal, Caltech Astronomy, Pasadena, CA 91125
http://www.astro.caltech.edu/~aam aam@astro.caltech.edu

"Alcohol and calculus don't mix. Never drink and derive."

pgsql-general by date:

Previous
From: "twosk"
Date:
Subject: embeding postgre
Next
From: "Simon Windsor"
Date:
Subject: Replication options