Wish: remove ancient constructs from Postgres

Поиск
Список
Период
Сортировка
От Andrus Moor
Тема Wish: remove ancient constructs from Postgres
Дата
Msg-id dtrpbh$2v60$1@news.hub.org
обсуждение исходный текст
Ответы Re: Wish: remove ancient constructs from Postgres  ("Uwe C. Schroeder" <uwe@oss4u.com>)
Re: Wish: remove ancient constructs from Postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Wish: remove ancient constructs from Postgres  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: Wish: remove ancient constructs from Postgres  (Christopher Weimann <csw@k12hq.com>)
Список pgsql-general
It is difficult to write standard-compliant code in Postgres.
There are a lot of constructs which have SQL equivalents but are still used
widely, even in samples in docs!

For example, there are suggestions using

now()::CHAR!=foo

while the correct way is

CAST(CURRENT_DATE AS CHAR)<>foo

now() function, :: and != operators should be removed from language.

I like the Python logic: there is one way
Postgres uses C logic: there are multiple ways.

Bruce seems to attempt start  this process trying implement
escape_string_warning in postgresql.conf . However, this is only very minor
step. Please clean Postgres.

Andrus.




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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: postgresql documentation
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Is the pg_locks been used?