Re: Domain check constraint not honored?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Domain check constraint not honored?
Дата
Msg-id 56337655.3060500@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Domain check constraint not honored?  (Eric Schwarzenbach <subscriber@blackbrook.org>)
Ответы Re: Domain check constraint not honored?
Список pgsql-general
On 10/29/15 5:29 PM, Eric Schwarzenbach wrote:
> I'm just now converting that path to use a custom domain (along with
> custom operators) instead of just being a string. (The custom operators
> allow the paths to be sorted properly without each segment needing to be
> filled with zeros to a fixed length.) (Also FWIW, the latest version of
> this regexp is now '^([0-9]+.)*[0-9]+$')

Have you looked at using int[]? It wouldn't be hard to go between that
and the string representation using string_to_array() and
array_to_string(). There's also a chance that eventually you'd be able
to do FKs on it.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: ftell mismatch with expected position
Следующее
От: Dane Foster
Дата:
Сообщение: Re: mysql_fdw trouble