Re: pg_migrator and an 8.3-compatible tsvector data type
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pg_migrator and an 8.3-compatible tsvector data type |
| Дата | |
| Msg-id | 9356.1243697625@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pg_migrator and an 8.3-compatible tsvector data type (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: pg_migrator and an 8.3-compatible tsvector data
type
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> I have discovered a simpler solution using ALTER TABLE and calling a
> conversion function:
> test=> CREATE TABLE tsvector_test(x tsvector);
> CREATE TABLE
> test=> ALTER TABLE tsvector_test ALTER COLUMN x TYPE tsvector
> test-> USING conversion_func(x);
> ALTER TABLE
> No need for a fake data type and the required index infrastructure.
I think this is basically a large-caliber foot gun. You're going to
pretend that invalid data is valid, until the user gets around to fixing
it?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера