Re: Proposal for SYNONYMS

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal for SYNONYMS
Дата
Msg-id 21389.1142027495@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal for SYNONYMS  (Kris Jurka <books@ejurka.com>)
Ответы Re: Proposal for SYNONYMS  (Ragnar <gnari@hive.is>)
Список pgsql-hackers
Kris Jurka <books@ejurka.com> writes:
> One key difference would be that synonyms track schema updates, like 
> adding a column, to the referenced object that a view would not.

That raises a fairly interesting point, actually.  What would you expect
to happen here:
CREATE TABLE foo ...;CREATE SYNONYM bar FOR foo;CREATE VIEW v AS SELECT * FROM bar;DROP SYNONYM bar;

With the implementations being proposed, v would effectively be stored
as "SELECT * FROM foo" and thus would be unaffected by the DROP SYNONYM.
Is that what people will expect?  Is it what happens in Oracle?
        regards, tom lane


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

Предыдущее
От: "Luke Lonergan"
Дата:
Сообщение: Re: random observations while testing with a 1,8B row
Следующее
От: Ragnar
Дата:
Сообщение: Re: Proposal for SYNONYMS