pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedPrivate functions
4+ messages / 4 participants
[nested] [flat]
* Private functions
@ 2010-03-13 17:57 Gianvito Pio <pio.gianvito@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Gianvito Pio @ 2010-03-13 17:57 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Private functions
@ 2010-03-13 18:00 Pavel Stehule <pavel.stehule@gmail.com>
parent: Gianvito Pio <pio.gianvito@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Pavel Stehule @ 2010-03-13 18:00 UTC (permalink / raw)
To: Gianvito Pio <pio.gianvito@gmail.com>; +Cc: pgsql-sql
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 <pio.gianvito@gmail.com>:
> 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 (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Private functions
@ 2010-03-14 03:21 Jasen Betts <jasen@xnet.co.nz>
parent: Gianvito Pio <pio.gianvito@gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Jasen Betts @ 2010-03-14 03:21 UTC (permalink / raw)
To: pgsql-sql
On 2010-03-13, Gianvito Pio <pio.gianvito@gmail.com> 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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Private functions
@ 2010-03-15 06:25 silly sad <sad@bankir.ru>
parent: Jasen Betts <jasen@xnet.co.nz>
0 siblings, 0 replies; 4+ messages in thread
From: silly sad @ 2010-03-15 06:25 UTC (permalink / raw)
To: pgsql-sql
On 03/14/10 06:21, Jasen Betts wrote:
> On 2010-03-13, Gianvito Pio<pio.gianvito@gmail.com> 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.
>
read the section SECURITY DEFINER
and GRANT and REVOKE and CREATE USER
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-03-15 06:25 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-03-13 17:57 Private functions Gianvito Pio <pio.gianvito@gmail.com>
2010-03-13 18:00 ` Pavel Stehule <pavel.stehule@gmail.com>
2010-03-14 03:21 ` Jasen Betts <jasen@xnet.co.nz>
2010-03-15 06:25 ` silly sad <sad@bankir.ru>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox