Re: PostGIS dropgeometrycolumn function (Was: Re: [7.4] "permissions problem" with pl/pgsql function )
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: PostGIS dropgeometrycolumn function (Was: Re: [7.4] "permissions problem" with pl/pgsql function ) |
| Дата | |
| Msg-id | 24549.1074616586@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | PostGIS dropgeometrycolumn function (Was: Re: [7.4] "permissions problem" with pl/pgsql function ) ("Marc G. Fournier" <scrappy@postgresql.org>) |
| Ответы |
Re: PostGIS dropgeometrycolumn function (Was: Re: [7.4]
|
| Список | pgsql-hackers |
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> On Mon, 19 Jan 2004, Tom Lane wrote:
>> in particular, what SQL command is it trying to execute when it chokes?
> The function is executing:
> EXECUTE ''update pg_attribute set attnotnull = false from pg_class where
> pg_attribute.attrelid = pg_class.oid and pg_class.relname = '' ||
> quote_literal(table_name) ||'' and pg_attribute.attname = '' ||
> quote_literal(column_name);
Well, no wonder. You have to be superuser to do that, and it's a pretty
bad idea even then.
We do have ALTER TABLE ... SET/DROP NOT NULL since 7.3, so hacking
pg_attribute directly isn't necessary for this anymore.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера