Re: AW: [HACKERS] Re: PostgreSQL reference manual

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: AW: [HACKERS] Re: PostgreSQL reference manual
Дата
Msg-id 199803251445.PAA16471@gauss.topsystem.de
обсуждение исходный текст
Ответ на Re: AW: [HACKERS] Re: PostgreSQL reference manual  (dg@illustra.com (David Gould))
Ответы Re: AW: [HACKERS] Re: PostgreSQL reference manual  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
David Gould writes:
> Consider also not updateing the grammar. The strength of PostgreSQL is that
> functions can be added to work inside the server. These functions can often
> do whatever is being proposed as new syntax.

So you want me to not check the syntax while parsing the embedded SQL code?

> So, instead of cluttering up the grammar with non-standard SQLish stuff
> to handle things like groups, just create an administrative function to
> do this job.
>
> * return create_group('groupname');
> * return add_user_to_group('groupname', 'username');
> * return drop_group('groupname');

But this is not embedded SQL.

> These can be written in C, in SQL, or what ever far more quickly and with
> much less risk of destabilizing the system than the parser can be modified.
> It also avoids making incompatibility with ecpg.

Okay, but I should at least check for ANSI SQL.

Michael

--
Dr. Michael Meskes, Project-Manager    | topsystem Systemhaus GmbH
meskes@topsystem.de                    | Europark A2, Adenauerstr. 20
meskes@debian.org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10

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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: AW: [HACKERS] Re: PostgreSQL reference manual
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Data type removal