| From: | Nirmalya Lahiri <nirmalyalahiri(at)yahoo(dot)com> | 
|---|---|
| To: | Richard Huxton <dev(at)archonet(dot)com> | 
| Cc: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Re: Private or publice function | 
| Date: | 2005-01-11 18:16:16 | 
| Message-ID: | 20050111181616.69302.qmail@web50802.mail.yahoo.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Thanks Richard,
 for your reply. Now I am explaining you what I want.
Let I have 4
functions......function_1(),function_2(),function_3(),function_4().
create or replace function function_1() returns numeric as '
begin
 create or replace function function_2() returns numeric as ''
 begin 
  --------
  --------
 end;
 '' language plpgsql
 -----------
 -----------
 -----------
 create or replace function function_3() returns numeric as ''
 begin
  ---------
  ---------
 end;
 '' language plpgsql
end ;
' language plpgsql
create or replace function function_4() returns numeric as '
begin 
 -----------
 -----------
end;
' language plpgsql
 Now after creating these functions, I can easily call every function
from psql prompt. But I want to encapsulate function_2() and
function_3() withen function_1(), so that no one can call
function_2() and function_3() from psql prompt and from function_4(),
only from withen the function_1() I can call function_2() and
function_3().
Is it possible in PostgreSQL?
Nirmalya Lahiri
--- Richard Huxton <dev(at)archonet(dot)com> wrote:
> Nirmalya Lahiri wrote:
> > Hi,
> >  How can I create a publice or private function?
> 
> I'm not sure the concept makes sense in PostgreSQL. Can you explain
> what 
> you're trying to achieve?
> 
> -- 
>    Richard Huxton
>    Archonet Ltd
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister
> command
>     (send "unregister YourEmailAddressHere" to
> majordomo(at)postgresql(dot)org)
> 
		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-01-11 18:19:20 | Re: Interval Question | 
| Previous Message | Bruno Wolff III | 2005-01-11 16:29:59 | Re: Limiting USAGE to only certain objects within a schema |