Re: Pg7.1-beta and CVS psqlodbc.dll: No views

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joel Burton" <jburton(at)scw(dot)org>
Cc: pgsql-interfaces(at)postgresql(dot)org, psql-bugs(at)postgresql(dot)org
Subject: Re: Pg7.1-beta and CVS psqlodbc.dll: No views
Date: 2000-11-23 04:34:09
Message-ID: 26152.974954049@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Joel Burton" <jburton(at)scw(dot)org> writes:
> So, I compiled last night's CVS sources to create a new
> psqlodbc.dll. This works *great* -- for tables. I don't see any of the
> views (I did w/Pg7.0.2 and the stable 7.50 ODBC driver).

> I can see through the ODBC trace that the driver gets the tables
> with
> select relname, usename, relhasrules from pg_class, pg_user where
> relkind = 'r' and usesysid = relowner order by relname

> (relkind='r' is for normal tables, 'v' is for views).

That's correct now, but in prior releases relkind='r' was used for both
tables and views (you had to go looking for an ON SELECT rule to
discover that a view was a view). It seems pretty likely that the ODBC
driver hasn't been fixed to know about this change :-(. Feel free to
submit a patch...

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jean-Pierre Loui 2000-11-23 08:05:14 switching database form oracle to postgress on a jdbc app
Previous Message Michael Miyabara-McCaskey 2000-11-22 23:13:48 RE: ODBC Windows driver corrupts data?