Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > PostgreSQL > dependences between function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-02, 08:33
kalman kalman is offline
Registered User
 
Join Date: Jan 2002
Posts: 19
Question dependences between function

Suppose that the function (plpgsql) f1 use f2 and I do some modification to f2 how I can avoid to rebuild f1 also ?


Ciao.
Reply With Quote
  #2 (permalink)  
Old 02-18-02, 08:58
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 398
plpgsql

if the function f2 doesnot have other arguments then it's no problem
to deop the f2 and create the new one
without creating the f1
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #3 (permalink)  
Old 02-18-02, 09:32
kalman kalman is offline
Registered User
 
Join Date: Jan 2002
Posts: 19
Re: plpgsql

Quote:
Originally posted by eperich
if the function f2 doesnot have other arguments then it's no problem
to deop the f2 and create the new one
without creating the f1

Of course but this is not the case!!!
Reply With Quote
  #4 (permalink)  
Old 02-18-02, 09:36
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 398
objectid

maybe the problem is
that one must drop the function and
create it new
internally the oid change
I think thats the problem
the core developers are working on a CREATE or REPLACE FUNCTION
But It's planned in the v7.3
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #5 (permalink)  
Old 02-18-02, 09:45
kalman kalman is offline
Registered User
 
Join Date: Jan 2002
Posts: 19
Re: objectid

Quote:
Originally posted by eperich
maybe the problem is
that one must drop the function and
create it new
internally the oid change
I think thats the problem
the core developers are working on a CREATE or REPLACE FUNCTION
But It's planned in the v7.3

Ok.
I know that a function is compiled the first time that the function is used, indeed some times if you forget a ";" you obtain a compile error not a create error. Is enough, I think, say to Postgresql: "assume from now that all function are not yet compiled", doesn't exist a way to invalidate
"the flag: already compiled" ?
Reply With Quote
  #6 (permalink)  
Old 02-18-02, 19:08
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 398
compile

I don't think so
but these thigns are deeper in the system
I will look in the docs
maybe I find something that could help
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On