Re: ERROR: cannot change name of view column

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Réal A(dot) Carbonneau <contact(at)realcarbonneau(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: ERROR: cannot change name of view column
Date: 2019-01-01 19:35:08
Message-ID: CAKFQuwZo8hdW8E=Vow0qw_qe+gcRKo+Zn3ecXrCxAnHkYAA_LQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tuesday, January 1, 2019, Réal A. Carbonneau <contact(at)realcarbonneau(dot)com>
wrote:
>
> Since CREATE ... OR REPLACE is literally: "if exists, drop and create,
> else, create",
>

It’s specifically saying “replace the query used for the view without
changing the view signature/type”. Same goes for create or replace
function. The point being the signature is public and cannot be changed on
the fly but the implementation can be replaced.

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-01-01 20:23:24 Re: ERROR: cannot change name of view column
Previous Message Réal A. Carbonneau 2019-01-01 18:46:29 Re: ERROR: cannot change name of view column