Received: from druid.net (root@druid.net [216.126.72.98]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA83415 for ; Thu, 23 Dec 1999 12:00:50 -0500 (EST) (envelope-from darcy@druid.net) Received: from localhost (1696 bytes) by druid.net via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 23 Dec 1999 12:00:49 -0500 (EST) (Smail-3.2.0.104 1998-Nov-20 #4 built 1999-Apr-13) Message-Id: Subject: Re: [INTERFACES] Ghost insert In-Reply-To: <6506.945963375@sss.pgh.pa.us> from Tom Lane at "Dec 23, 1999 10:36:15 am" To: tgl@sss.pgh.pa.us (Tom Lane) Date: Thu, 23 Dec 1999 12:00:49 -0500 (EST) From: "D'Arcy" "J.M." Cain Cc: darcy@druid.net, enrique@xpress.es, pgsql-interfaces@postgreSQL.org Reply-To: pgsql-interfaces@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL50 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Thus spake Tom Lane > "D'Arcy" "J.M." Cain writes: > > Thus spake Enrique Rodriguez Lazaro > >> I can't do a simple 'insert' from libpq. > > > Just guessing here but is it possible that clientes is a view and you are > > seeing the underlying table when you select after the insert? > > Oooh, good thought --- but you are explaining it backwards. If clientes > was made with CREATE VIEW, then an INSERT into clientes would in fact > insert data into clientes --- but you'd never see it again, because any > SELECT from clientes would be redirected to whatever the view is of. > (I've been burnt by that myself ;-).) No, I think I was right but I probably used the wrong word. By "underlying" I meant the table returned instead of clientes. I guess "redirected" would have been a better word. -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.