Re: Feature request - Edit data and tables without a primary key
В списке pgadmin-support по дате отправления:
| От | Guillaume Lelarge |
|---|---|
| Тема | Re: Feature request - Edit data and tables without a primary key |
| Дата | |
| Msg-id | 1342271397.8088.20.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: Feature request - Edit data and tables without a primary key (Thom Brown <thom@linux.com>) |
| Список | pgadmin-support |
On Sat, 2012-07-14 at 14:01 +0100, Thom Brown wrote: > On 14 July 2012 13:57, Guillaume Lelarge <guillaume@lelarge.info> wrote: > > On Thu, 2012-07-12 at 12:31 +0100, Thom Brown wrote: > >> Use of the CTID system column would work. > > > > I don't see how that could work. CTIDs obviously are unique, but anyone, > > updating a line will get another CTID for this line. If you try to > > update it afterwards, in the best case, it errors out because there is > > no line at this CTID. In the worst case, you update a completely > > different line. > > Why can't you just use "RETURNING ctid" at the end of the statement to > get the new one and update the grid with that value? At the end of which statement? how do you want to make it work? -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
В списке pgadmin-support по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера