Re: Fwd: DB2-style INS/UPD/DEL RETURNING

Поиск
Список
Период
Сортировка
От Lukas Smith
Тема Re: Fwd: DB2-style INS/UPD/DEL RETURNING
Дата
Msg-id 44159ED2.6030009@pooteeweet.org
обсуждение исходный текст
Ответ на Fwd: DB2-style INS/UPD/DEL RETURNING  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Список pgsql-hackers
Jonah H. Harris wrote:

> In the end, how is this more efficient or easy than:
> 
> INSERT INTO test_tbl VALUES (nextval('test_id_seq'), 'John Doe') 
> RETURNING test_id;
> OR
> SELECT test_id FROM NEW TABLE INSERT INTO test_tbl VALUES 
> (nextval('test_id_seq'), 'John Doe');
> 
> Based on your statement, this should be really easy.  It's easy to make 
> generalized statements, so let's see an example to compare.

Ah, I was just not clear on what you were comparing this against. So 
nevermind.

regards,
Lukas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Fwd: DB2-style INS/UPD/DEL RETURNING
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [PERFORM] Hanging queries on dual CPU windows