Selecting Schema when using postgres

Anything that doesn't fall into the defect or enhancement categories

Selecting Schema when using postgres

Postby peerjakobsen on Thu Sep 18, 2008 5:16 pm

Hi,

I can only get MyMeta to show me tables from the public schema in postgres. It would be nice to be able to pass the schema name to MyMeta so that tables not in the public schema could be processed.

For example, instead of :

Code: Select all
Sub bindTables(sDatabase)
   Set db = MyMeta.Databases(sDatabase)
   
   lstTables.BindData(db.Tables)
End Sub


Have something like this:

Code: Select all
Sub bindTables(sDatabase, sSchema)
   Set db = MyMeta.Databases(sDatabase, sSchema)
   
   lstTables.BindData(db.Tables)
End Sub


Thanks
peerjakobsen
Lurker
 
Posts: 2
Joined: Thu Sep 18, 2008 5:09 pm

Re: Selecting Schema when using postgres

Postby mike.griffin on Mon Sep 22, 2008 12:09 pm

Are you selecting Postgre SQL 8+ in the dropdown?
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Re: Selecting Schema when using postgres

Postby peerjakobsen on Tue Sep 23, 2008 12:00 am

Yes I am.

Should that give me some kind of extra option for the Schema?
peerjakobsen
Lurker
 
Posts: 2
Joined: Thu Sep 18, 2008 5:09 pm

Re: Selecting Schema when using postgres

Postby mike.griffin on Tue Sep 23, 2008 1:43 pm

Oh, I see the issue. MyMeta (the meta data provider) has an issue dealing with Schema's. I don't think there is a work around? :(
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Re: Selecting Schema when using postgres

Postby justin.greenwood on Thu Sep 25, 2008 2:51 pm

There is always a work around - but it may get ugly. :S
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Re: Selecting Schema when using postgres

Postby cgriffo on Thu Oct 30, 2008 4:06 am

I am having the same trouble with only being able to get tables from one schema. I can choose different schemas by setting the search path in Postgres, but it would be really nice to be able get tables from more than one. Is there a way to get tables from multiple schemas.

Thanks,
Craig
cgriffo
Lurker
 
Posts: 1
Joined: Thu Oct 30, 2008 4:01 am


Return to General Questions or Comments

Who is online

Users browsing this forum: No registered users and 3 guests

cron