| From: | "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net> |
|---|---|
| To: | tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) |
| Cc: | darcy(at)druid(dot)net, enrique(at)xpress(dot)es, pgsql-interfaces(at)postgreSQL(dot)org |
| Subject: | Re: [INTERFACES] Ghost insert |
| Date: | 1999-12-23 17:00:49 |
| Message-ID: | m121Bbd-0000daC@druid.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
Thus spake Tom Lane
> "D'Arcy" "J.M." Cain <darcy(at)druid(dot)net> 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 <darcy(at){druid|vex}.net> | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Enrique Rodriguez Lazaro | 1999-12-23 18:40:20 | Re: [ADMIN] Re: [INTERFACES] Ghost insert |
| Previous Message | Enrique Rodriguez Lazaro | 1999-12-23 16:16:16 | Re: [INTERFACES] Ghost insert |