Re: [GENERAL] Extending postgres objects with attributes

2010-07-04 Thread Craig Ringer
On 04/07/10 21:43, Davor J. wrote: > PS using inheritance in this scenario is problematic. Yep. Just one issue is that roles are cluster-wide, whereas tables are visible only inside a single database. I generally use the role mechanism as-is, granting users access to roles that control particul

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Ricardo Ramírez
Hi, look at this page of the documentation of postgres http://www.postgresql.org/docs/current/static/plpgsql-statements.html there explain some ways to know the effect of a SQL command. Regards. 2010/7/4 Andre Lopes > Hi, > > The function will run in the php-cli, in a CronJob, it is not for use

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Andre Lopes
Hi, The function will run in the php-cli, in a CronJob, it is not for use in a PHP webpage. I think doesn't matter the extra time that takes to run. Best Regards, On Sun, Jul 4, 2010 at 4:11 PM, Pavel Stehule wrote: > 2010/7/4 Merlin Moncure : > > On Sun, Jul 4, 2010 at 7:25 AM, Andre Lopes >

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Roland Vögtli
> I need to use an Forum Software. There is any Open Souce Forum Script using > PostgreSQL? We use SimpleMachines SMF. cheers ® -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Garry Saddington
Andre Lopes wrote: Hi, I need to use an Forum Software. There is any Open Souce Forum Script using PostgreSQL? Best Regards, André. Zforum does, but you will need to install Zope to run it. Garry -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your s

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Guillaume Lelarge
Le 04/07/2010 16:10, Andre Lopes a écrit : > Hi, > > I need to use an Forum Software. There is any Open Souce Forum Script > using PostgreSQL? > Fluxbb (http://fluxbb.org/) works great with PostgreSQL. We use it at http://forums.postgresql.fr and we're really happy with it. -- Guillaume http

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Pavel Stehule
2010/7/4 Merlin Moncure : > On Sun, Jul 4, 2010 at 7:25 AM, Andre Lopes wrote: >> Great! That [begin exception end] is what I need! >> >> Thank you Pavel. >> >> Best Regards, > > Just a quick heads up: functions with exception handlers tend to be > more expensive than those without, even if the ex

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Thom Brown
On 4 July 2010 15:22, CaT wrote: > On Sun, Jul 04, 2010 at 03:10:36PM +0100, Andre Lopes wrote: >> Hi, >> >> I need to use an Forum Software. There is any Open Souce Forum Script using >> PostgreSQL? > > phpBB3 off the top of my head. > I found phpBB3 unusable for PostgreSQL last time as if you t

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Dave Page
On Sun, Jul 4, 2010 at 3:22 PM, CaT wrote: > On Sun, Jul 04, 2010 at 03:10:36PM +0100, Andre Lopes wrote: >> Hi, >> >> I need to use an Forum Software. There is any Open Souce Forum Script using >> PostgreSQL? > > phpBB3 off the top of my head. If using the one-click PostgreSQL installers, you ca

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread CaT
On Sun, Jul 04, 2010 at 03:10:36PM +0100, Andre Lopes wrote: > Hi, > > I need to use an Forum Software. There is any Open Souce Forum Script using > PostgreSQL? phpBB3 off the top of my head. -- "A search of his car uncovered pornography, a homemade sex aid, women's stockings and a Jack Ru

Re: [GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread David Boreham
On 7/4/2010 8:10 AM, Andre Lopes wrote: I need to use an Forum Software. There is any Open Souce Forum Script using PostgreSQL? We use jForum. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsq

[GENERAL] Open Source Forum Software using PostgreSQL?

2010-07-04 Thread Andre Lopes
Hi, I need to use an Forum Software. There is any Open Souce Forum Script using PostgreSQL? Best Regards, André.

[GENERAL] Extending postgres objects with attributes

2010-07-04 Thread Davor J.
Several times I wanted to "extend" some of the postgres objects, like roles or functions. For example, sometimes you want to add extra attributes to roles, which are application dependent. Or sometimes you want to store functions and reference them in your custom tables, without losing referent

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Merlin Moncure
On Sun, Jul 4, 2010 at 7:25 AM, Andre Lopes wrote: > Great! That [begin exception end] is what I need! > > Thank you Pavel. > > Best Regards, Just a quick heads up: functions with exception handlers tend to be more expensive than those without, even if the exception doesn't fire. merlin -- Sen

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Andre Lopes
Great! That is what I need! Thank you Pavel. Best Regards, On Sun, Jul 4, 2010 at 12:20 PM, Pavel Stehule wrote: > 2010/7/4 Andre Lopes : > > Hi, > > > > Thanks for your reply. > > > > Yes, in the Postgre command line I see the exception, the problem is that > > I'am using this function in a PH

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Pavel Stehule
2010/7/4 Andre Lopes : > Hi, > > Thanks for your reply. > > Yes, in the Postgre command line I see the exception, the problem is that > I'am using this function in a PHP code. I need send the value "1" to the OUT > parameter if the function is successful or send the value "0" to the OUT > parameter

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Andre Lopes
Hi, Thanks for your reply. Yes, in the Postgre command line I see the exception, the problem is that I'am using this function in a PHP code. I need send the value "1" to the OUT parameter if the function is successful or send the value "0" to the OUT parameter if the function not runs successful.

Re: [GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Pavel Stehule
Hello every unsuccessful SQL command raises exception in PL/pgSQL. So if your function is finished without exception, then INSERT is ok. Regards Pavel Stehule 2010/7/4 Andre Lopes : > Hi, > > I have a function, at the end I need to know if the INSERTS have run > successfully or not. > > Here is

[GENERAL] How to know if an INSERT is done inside a function?

2010-07-04 Thread Andre Lopes
Hi, I have a function, at the end I need to know if the INSERTS have run successfully or not. Here is the function: [code] CREATE OR REPLACE FUNCTION "apr_insert_utilizador_ap" (IN ppgroup_id int4, IN ppip_address char, IN ppusername varchar, IN pppassword varchar, IN ppemail varchar, IN ppactiv