Re: [GENERAL] VIEW still referring to old name of field

2012-02-09 Thread Robins Tharakan
Thanks Tom. I get it. Putting it in another way, if there was a function and a VIEW and this field name were to be changed, then we'd have a broken function anyway. The only issue is that (before writing this mail) I expected that a VIEW would either throw up errors or would work without fail reg

Re: [GENERAL] VIEW still referring to old name of field

2012-02-09 Thread Tom Lane
Robins Tharakan writes: > This is a case where I changed the name of a field in a table that a VIEW > referred to, but the VIEW definition still points to the old name of the > field. The surprise is that the VIEW still works (with live data). Specifically, you mean that you had a column referenc

[GENERAL] VIEW still referring to old name of field

2012-02-09 Thread Robins Tharakan
Hi, This is a case where I changed the name of a field in a table that a VIEW referred to, but the VIEW definition still points to the old name of the field. The surprise is that the VIEW still works (with live data). Excerpt from psql (v9.1.2) given below. The problem came up when I took a sche