Re: Best way to restrict detail rows?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Best way to restrict detail rows?
Дата
Msg-id dcc563d10812081334y7b99268dk777fc869286213bb@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Best way to restrict detail rows?  ("Richard Broersma" <richard.broersma@gmail.com>)
Список pgsql-sql
On Mon, Dec 8, 2008 at 2:31 PM, Richard Broersma
<richard.broersma@gmail.com> wrote:
> One Idea that popped into my head that may-or-may-not work would be to
> add a constraint trigger that checks if all of the detail records have
> the same xmin as the order table record.

Yes, it's not as simple as I first thought when I read it.

I'd look at using a udf that used a sec definer that only it had to do
the row adds and do everything at once, inserting to both tables at
the time of the creation of the order.


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

Предыдущее
От: "Richard Broersma"
Дата:
Сообщение: Re: Best way to restrict detail rows?
Следующее
От: Richard Huxton
Дата:
Сообщение: A DISTINCT problem removing duplicates