Search Postgresql Archives

Re: Tuning queries inside a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Nolan wrote:
select * from foo('bar','debug')


But how do I do that inside a pl/pgsql function?  'select into' doesn't
seem to work properly.


You would have to code it. For example:

IF $2 = ''debug'' THEN:


I would have to check be able to include a timestamp at the beginning
of each notice.


You can do that from the config file, but it only gives the time to the nearest second, which may not be a fine enough time interval.
--
Mike Nolan


--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedication Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux