CHECK vs REFERENCES

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема CHECK vs REFERENCES
Дата
Msg-id 20050910001821.E1170@ganymede.hub.org
обсуждение исходный текст
Ответы Re: CHECK vs REFERENCES  (Michael Fuhr <mike@fuhr.org>)
Re: CHECK vs REFERENCES  (Vivek Khera <vivek@khera.org>)
Список pgsql-performance
Which is faster, where the list involved is fixed?  My thought is that
since it doesn't have to check a seperate table, the CHECK itself should
be the faster of the two, but I can't find anything that seems to validate
that theory ...

The case is where I just want to check that a value being inserted is one
of a few possible values, with that list of values rarely (if ever)
changing, so havng a 'flexible list' REFERENCED seems relatively overkill
...

Thoughts, or pointers to a doc that disproves, or proves, what I believe?

Thanks ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: please comment on cpu 32 bit or 64 bit
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: CHECK vs REFERENCES