Re: Referencing serial col's sequence for insert

Поиск
Список
Период
Сортировка
От Francisco Olarte
Тема Re: Referencing serial col's sequence for insert
Дата
Msg-id CA+bJJbwX8eDAh-dRSzTrW9i8ugs4oDz5FpGfhETG6yY70PZbCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Referencing serial col's sequence for insert  (Anil Menon <gakmenon@gmail.com>)
Список pgsql-general
Hi Anil:

On Wed, Jul 23, 2014 at 11:34 PM, Anil Menon <gakmenon@gmail.com> wrote:
...
> . It's that itch to drink deep from the fountain of knowledge.

Beware of hyponatremia, and keep in mind it can change in the future.
But you'll surely learn a lot.


> I really do like
> Laurenz Albe's advice of using WITH() AS which seems to be the best practice
> I can ask the developers to follow as it eliminates a lot of uncertainties
> and db specific behavior - and seems like a best practice even for other
> DBs.

Yep, that is the kind of thing I use in production too. These kind of
queries are predictable and easy to build and test incrementally.

Regards.

Francisco Olarte.


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

Предыдущее
От: Ramesh T
Дата:
Сообщение: Re: tab_to_sting
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: tab_to_sting