dbTalk Databases Forums  

Creating Functions in a Separate Schema

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Creating Functions in a Separate Schema in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Dexter
 
Posts: n/a

Default Creating Functions in a Separate Schema - 08-24-2004 , 12:46 PM






Our application currently runs in SQL Server and we are porting it over
to Postgres. When we write enbedded SQL queries for SQL Server, we need
to reference user-defined functions with the prefix "dbo." (e.g.,
"dbo.Function_Name()"). In experimenting with Postgres, it appears that
we can create a schema called "dbo" and then reference functions with
the same syntax (e.g., "dbo.Function_Name()").

We're trying to understand whether there will be any disadvantages to
doing this. One issue we have discovered is that any public table or
view references in these functions need to explicitly use the "public."
prefix for the tables or views. Are there any other issues or problems
with this approach? Any help will be greatly appreciated. Thanks.



Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.