[SQL] Private functions

2010-03-13 Thread Gianvito Pio

Hi all,
is there a way to write a function that can only be called by another 
function but not directly using SELECT function_name ( )?

Thanks

--
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Private functions

2010-03-13 Thread Pavel Stehule
Hello

directly no. There is only workaround - you can verify inside in
function content of pg_stat_activity_table - but this have to have a
superuser rights.

Regards
Pavel Stehule

2010/3/13 Gianvito Pio :
> Hi all,
> is there a way to write a function that can only be called by another
> function but not directly using SELECT function_name ( )?
> Thanks
>
> --
> Sent via pgsql-sql mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>

-- 
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Private functions

2010-03-13 Thread Jasen Betts
On 2010-03-13, Gianvito Pio  wrote:
> Hi all,
> is there a way to write a function that can only be called by another 
> function but not directly using SELECT function_name ( )?

not really.

but there may be another way to get the effect you want. 

-- 
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql