Re: Implementing "thick"/"fat" databases

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Implementing "thick"/"fat" databases
Дата
Msg-id CAKt_ZfvqT_YFumYmnZWcLR9R3Gh-TE7+CWnu+OzREPa0FS2Uow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Implementing "thick"/"fat" databases  (David Johnston <polobo@yahoo.com>)
Список pgsql-general
On Sat, Jul 23, 2011 at 1:32 PM, David Johnston <polobo@yahoo.com> wrote:
>
>>
>> Now for the application, you can create an API that is semantically
>> clearer.  But PostgreSQL doesn't provide an easy way of calling
>> procedures of this sort out of select/update/insert statements and
>> select is the only way to do this.
>>
>>
>
> A semantically accurate way to run "procedures" is:
>
> DO $$ BEGIN PERFORM function(); END $$;
>
> It would be nice if you could use PERFORM outside of plpgsql...
>
> Now, this is not standard SQL but it does convey the desired semantics.  That said, proper function naming can convey
similarsemantic information as well. 


The other option (one we try to follow in LedgerSMB) is to always make
the procedure return useful information.  So you are essentially
calling a procedure and selecting the result for further use by your
application.

Best Wishes,
Chris Travers

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: weird table sizes
Следующее
От: MirrorX
Дата:
Сообщение: Re: weird table sizes