A question about rules

Поиск
Список
Период
Сортировка
От stan
Тема A question about rules
Дата
Msg-id 20200118165325.GB21472@panix.com
обсуждение исходный текст
Ответы Re: A question about rules
Список pgsql-general
So, I just discovered the rules system. As I understand it, it can be used
to rewrite queries before they are passed to the query processor.

I was wondering if I could use this to resolve a long standing frustration
of mine. I often need to declare a column as NON NULL, and create a
trigger/function to auto populate it with something more complex than a
simple sequence. This need arises fairly often for me, and I would like to
come up with a good way to implement this.

Sorry for such a newbie question.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



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

Предыдущее
От: Dmitry Igrishin
Дата:
Сообщение: Re: RPC via WebSockets.
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: A question about rules