pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5943: jdbc client doesn't omit pg_toast_temp tables from schema views
2+ messages / 2 participants
[nested] [flat]

* BUG #5943: jdbc client doesn't omit pg_toast_temp tables from schema views
@ 2011-03-23 23:01  Daniel Ceregatti <daniel@ceregatti.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Daniel Ceregatti @ 2011-03-23 23:01 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      5943
Logged by:          Daniel Ceregatti
Email address:      daniel@ceregatti.org
PostgreSQL version: N/A
Operating system:   N/A
Description:        jdbc client doesn't omit pg_toast_temp tables from
schema views
Details: 

In the file org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java is the
query:

sql = "SELECT nspname AS TABLE_SCHEM FROM pg_catalog.pg_namespace WHERE
nspname <> 'pg_toast' AND nspname !~ '^pg_temp_' ORDER BY TABLE_SCHEM";

Using Data Tools Platform in eclipse I was able to see all the
pg_toast_temp_XXX schemas in the schema view.

Using postgresql-9.0-801.jdbc4.jar

Please note that RhodiumToad in #postgresql on irc.freenode.org actually
discovered this based on a conversation he, ojacobson, and I had, and I'm
simply reporting what he discovered.

Thanks,

Daniel



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #5943: jdbc client doesn't omit pg_toast_temp tables from schema views
@ 2011-03-24 20:32  Kris Jurka <books@ejurka.com>
  parent: Daniel Ceregatti <daniel@ceregatti.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2011-03-24 20:32 UTC (permalink / raw)
  To: Daniel Ceregatti <daniel@ceregatti.org>; +Cc: pgsql-bugs



On Wed, 23 Mar 2011, Daniel Ceregatti wrote:

>
> The following bug has been logged online:
>
> Bug reference:      5943
> Logged by:          Daniel Ceregatti
> Email address:      daniel@ceregatti.org
> Description:        jdbc client doesn't omit pg_toast_temp tables from
> schema views
> Details:
>
> In the file org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java is the
> query:
>
> sql = "SELECT nspname AS TABLE_SCHEM FROM pg_catalog.pg_namespace WHERE
> nspname <> 'pg_toast' AND nspname !~ '^pg_temp_' ORDER BY TABLE_SCHEM";
>
> Using Data Tools Platform in eclipse I was able to see all the
> pg_toast_temp_XXX schemas in the schema view.

This has already been fixed in CVS and will be in the next set of 
releases.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-03-24 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 23:01 BUG #5943: jdbc client doesn't omit pg_toast_temp tables from schema views Daniel Ceregatti <daniel@ceregatti.org>
2011-03-24 20:32 ` Kris Jurka <books@ejurka.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox