X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A7972D1B911 for ; Thu, 12 Feb 2004 19:42:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65256-06 for ; Thu, 12 Feb 2004 15:42:24 -0400 (AST) Received: from mail2.uklinux.net (s4.uklinux.net [80.84.72.14]) by svr1.postgresql.org (Postfix) with ESMTP id 57699D1B557 for ; Thu, 12 Feb 2004 15:42:22 -0400 (AST) Received: from bristolreccc.co.uk (bts-0690.dialup.zetnet.co.uk [194.247.50.178]) by mail2.uklinux.net (Postfix) with ESMTP id D1DE140A009; Thu, 12 Feb 2004 19:42:20 +0000 (UTC) Received: from mike by bristolreccc.co.uk with local (Exim 4.30 #3 (Red Hat Linux)) id 1ArMh8-0004rH-Kd; Thu, 12 Feb 2004 19:40:18 +0000 Subject: Re: confused newbie (to pg not db's) From: mike To: Tom Lane Cc: pgsql-interfaces@postgresql.org In-Reply-To: <4485.1076600703@sss.pgh.pa.us> References: <1076595324.3818.8.camel@datacc> <4485.1076600703@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1076614818.11650.10.camel@datacc> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 12 Feb 2004 19:40:18 +0000 X-SA-Exim-Scanned: No; Exit with error (see exim mainlog) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/31 X-Sequence-Number: 4724 On Thu, 2004-02-12 at 15:45, Tom Lane wrote: > mike 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 > I worked out what was happening - I was missing the ; Not helped by pgaccess and pgadmin not working right in different ways > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >