From: Tom Lane <tgl@sss.pgh.pa.us>
To: mike <mike@redtux1.uklinux.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: confused newbie (to pg not db's)
Date: Thu, 12 Feb 2004 10:45:03 -0500
Message-ID: <4485.1076600703@sss.pgh.pa.us> (raw)
In-Reply-To: <1076595324.3818.8.camel@datacc>
References: <1076595324.3818.8.camel@datacc>
mike <mike@redtux1.uklinux.net> writes:
> CREATE TABLE public."Invoice_Header"
^^^^^^^^^^^^^^^^
> I am trying to make Inv_ID a primary key as follows
> alter table Invoice_Header ADD CONSTRAINT PK_inv PRIMARY KEY (Inv_ID)
^^^^^^^^^^^^^^
> which runs without error, but nothing changes
I think you have tables named "Invoice_Header" and "invoice_header",
and the latter table is what's getting affected by your ALTER. If you
are going to use mixed-case names then you have to be consistent about
double-quoting them all the time.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, mike@redtux1.uklinux.net
Subject: Re: confused newbie (to pg not db's)
In-Reply-To: <4485.1076600703@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox