Re: How to insert either a value or the column default?

Поиск
Список
Период
Сортировка
От W. Matthew Wilson
Тема Re: How to insert either a value or the column default?
Дата
Msg-id CAGHfCUDme7mQixru2_gRbif6kcLLaf3SQBQMTitPHmcsrLa4xw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to insert either a value or the column default?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: How to insert either a value or the column default?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Sun, Aug 24, 2014 at 2:50 PM, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> It should be added to the library (it was first discussed in 2003...),
> but it's one of these things that will stop working when psycopg will
> start using the "extended query protocol" (together with other nifty
> features such as string literals for table/columns names) so in my
> mind it can only be included when psycopg will be able to do both
> client-side parameter interpolation and server-side arguments passing,
> and when the distinction between the two strategies will be clear
> (this is planned for a future psycopg3 but there is no timeline for it
> yet).

First of all, thanks for showing this trick!

But I am confused.  Will this trick stop working in a future version
of psycopg2?  Should I avoid using it?

Thanks again!


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

Предыдущее
От: Marc Mamin
Дата:
Сообщение: Re: Way to identify the current session's temp tables within pg_class ?
Следующее
От: Sameer Thakur
Дата:
Сообщение: Re: Using fmgr_hook