Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 01:08 AM
mike.griffin@mygenerationsoftware.com
Guest
 
Posts: n/a
Default Information Schema - Can the views be applied to older versions ofPostgreSQL

My name is Mike Griffin and we are adding PostgreSQL support to our
product, MyGeneration. MyGeneration pulls meta-data from DBMS systems to
generate business objects and stored procedures and such.

We are using the .NET managed provider Npgsql.dll. We typically get meta
data from OleDb providers and they provide good meta, however, there are
none for PostgreSQL that support the meta data services, so we're hitting
system tables. I'm very familiar with the INFORMATION SCHEMA views as
Microsoft SQL server and other databases support them, as does PostgreSQL
7.4 and up, however, if we only support 7.4 and up we'll be losing out on
most of the installed PostgreSQL user base.

So now I'm writing monster queries against system tables, I mean monster
queries. It's brutal.

So here's my question:

Can I take the INFORMATION SCHEMA views from 7.4 and install them in older
versions of PostgreSQL, if so, how far back can they work?

Mike Griffin
MyGeneration Software
http://www.mygenerationsoftware.com


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

  #2  
Old November 23rd, 2005, 01:09 AM
Peter Eisentraut
Guest
 
Posts: n/a
Default Re: Information Schema - Can the views be applied to older versions of PostgreSQL

mike.griffin@mygenerationsoftware.com wrote:[color=blue]
> Can I take the INFORMATION SCHEMA views from 7.4 and install them in
> older versions of PostgreSQL, if so, how far back can they work?[/color]

No. For your purposes, you maybe be able to backport them and
distribute the altered versions with your product. For some cases this
might involve trivial adjustments, but there is no guarantee how
difficult it will get.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

  #3  
Old November 23rd, 2005, 01:09 AM
Peter Eisentraut
Guest
 
Posts: n/a
Default Re: Information Schema - Can the views be applied to older versions of PostgreSQL

mike.griffin@mygenerationsoftware.com wrote:[color=blue]
> Can I take the INFORMATION SCHEMA views from 7.4 and install them in
> older versions of PostgreSQL, if so, how far back can they work?[/color]

No. For your purposes, you maybe be able to backport them and
distribute the altered versions with your product. For some cases this
might involve trivial adjustments, but there is no guarantee how
difficult it will get.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

  #4  
Old November 23rd, 2005, 01:09 AM
Tom Lane
Guest
 
Posts: n/a
Default Re: Information Schema - Can the views be applied to older versions of PostgreSQL

mike.griffin@mygenerationsoftware.com writes:[color=blue]
> Can I take the INFORMATION SCHEMA views from 7.4 and install them in older
> versions of PostgreSQL, if so, how far back can they work?[/color]

I doubt they would just drop in, but you could possibly adapt them
to mostly work...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

  #5  
Old November 23rd, 2005, 01:09 AM
Tom Lane
Guest
 
Posts: n/a
Default Re: Information Schema - Can the views be applied to older versions of PostgreSQL

mike.griffin@mygenerationsoftware.com writes:[color=blue]
> Can I take the INFORMATION SCHEMA views from 7.4 and install them in older
> versions of PostgreSQL, if so, how far back can they work?[/color]

I doubt they would just drop in, but you could possibly adapt them
to mostly work...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

 

Bookmarks

Thread Tools

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles