Re: Request for Comments: ALTER [OBJECT] SET SCHEMA

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Request for Comments: ALTER [OBJECT] SET SCHEMA
Дата
Msg-id 11388.1118326653@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Request for Comments: ALTER [OBJECT] SET SCHEMA  (Bernd Helmle <mailings@oopsware.de>)
Ответы Re: Request for Comments: ALTER [OBJECT] SET SCHEMA  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
Bernd Helmle <mailings@oopsware.de> writes:
> --On Mittwoch, Juni 08, 2005 14:49:56 -0400 Tom Lane <tgl@sss.pgh.pa.us> 
> wrote:
>> Applying "const" to pointers that point to things that are not const,
>> as in
>> 
>> + void
>> + ApplyTypeNamespace( Oid typeOid,
>> +             const Relation rel,
>> 
>> seems to me to be horrible style, even if the compiler lets you do it.
>> It's too easy to misread it as a promise not to alter the pointed-to
>> object.

> Well, i thought there *should* be a promise, not to alter *rel in that 
> specific case.

Hmm?  You're planning to write into the relation in question.  It's
hardly likely that the structure can be expected to remain virgin...
in practice I don't think we guarantee that even for read operations.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: autovacuum in backend?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Strange transaction-id behaviour? (was Re: [GENERAL] Two updates problem)