Another bug with views

Поиск
Список
Период
Сортировка
Искать

Another bug with views

От:
Dmitry Tkach <dmitry@openratings.com>
Дата:
... and here is another bug I ran into while trying to investigate my 
earlier problem with views a little more:

testdb=# drop rule skip_test;
ERROR:  parser: parse error at or near ";" at character 20
testdb=# \h drop rule
Command:     DROP RULE
Description: remove a rewrite rule
Syntax:
DROP RULE name [, ...]

testdb=# drop rule skip_test on test_view;
DROP RULE


First of all did you guys have to change the syntax in 7.3, and make it 
incompatible with all the existing sql code out there? :-(
I see that the rule names are no longer required to be globally 
unique... but still it would be nice if it could understand the old 
syntax and work the old way as long as there is only one matching rule...

Secondly, even if it has to be this way, it looks like the help entry is 
out of date...

Dima

Re: Another bug with views

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Dmitry Tkach  writes:
> Secondly, even if it has to be this way, it looks like the help entry is 
> out of date...

No, but your psql evidently is.  I get

regression=# \h drop rule
Command:     DROP RULE
Description: remove a rewrite rule
Syntax:
DROP RULE name ON relation [ CASCADE | RESTRICT ]

from 7.3 psql.  Yours is evidently 7.2.

			regards, tom lane
FAQ