Re: Proposal: RETURNING primary_key()
От
Igal @ Lucee.org
Тема
Re: Proposal: RETURNING primary_key()
Дата
Msg-id
56DDE9CE.3000006@lucee.org
Ответ на
Re: Proposal: RETURNING primary_key() (Joshua D. Drake)
Список
Дерево обсуждения
Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() "Joshua D. Drake" <jd@commandprompt.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Ian Barwick <ian@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal: RETURNING primary_key() Robert Haas <robertmhaas@gmail.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Robert Haas <robertmhaas@gmail.com>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() "Joshua D. Drake" <jd@commandprompt.com>
Re: Proposal: RETURNING primary_key() Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Michael Paquier <michael.paquier@gmail.com>
Re: Proposal: RETURNING primary_key() Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() Dave Cramer <pg@fastcrypt.com>
Re: Proposal: RETURNING primary_key() Stephen Frost <sfrost@snowman.net>
Re: Proposal: RETURNING primary_key() Dave Cramer <pg@fastcrypt.com>
Re: Proposal: RETURNING primary_key() Stephen Frost <sfrost@snowman.net>
Re: Proposal: RETURNING primary_key() Dave Cramer <pg@fastcrypt.com>
Re: Proposal: RETURNING primary_key() Stephen Frost <sfrost@snowman.net>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
Re: Proposal: RETURNING primary_key() Stephen Frost <sfrost@snowman.net>
Re: Proposal: RETURNING primary_key() Dave Cramer <pg@fastcrypt.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() Dave Cramer <pg@fastcrypt.com>
Re: Proposal: RETURNING primary_key() "Igal @ Lucee.org" <igal@lucee.org>
Re: Proposal: RETURNING primary_key() "David G. Johnston" <david.g.johnston@gmail.com>
Re: Proposal: RETURNING primary_key() Robert Haas <robertmhaas@gmail.com>
Re: Proposal: RETURNING primary_key() Craig Ringer <craig@2ndquadrant.com>
On 3/7/2016 12:45 PM, Joshua D. Drake wrote: > > I agree that the problem is that you don't always know what the > primary key is. > > I would argue the solution is to check before you write the query. Sure, that would be great, but perhaps I should have give some more context: We have an application server which allows our developers to query databases with simplified syntax. Our code is written in a generic way to allow the developers that use our application server to pass whatever query they want into the database server, whether it's SQL Server, MySQL, Oracle, etc. The code that we use to wrap the SQL statement, as well as the JDBC code, has no idea about the table or its constraints, so it's not like I'm writing my own queries, and am just being lazy at checking what the primary key is. I just can't know what the developer has in his database. Sure, I can probably query it via metadata tables, etc., but that would be a much slower process. Igal
В списке pgsql-hackers по дате отправления