From: Benoygopal <benoy@cdactvm.in>
To: 'Dave Page' <dpage@pgadmin.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5791: Tables are not viewing through pgadmin
Date: Thu, 20 Jan 2011 09:50:54 +0530
Message-ID: <000401cbb859$7a984230$6fc8c690$@in> (raw)
In-Reply-To: <AANLkTimDqzEDwhYN65L-qsHC2W1O7VMg8oS+__tAd6Uh@mail.gmail.com>
References: <201012170403.oBH43okq036431@wwwmaster.postgresql.org>
<4D0CC9E602000025000387A0@gw.wicourts.gov>
<000301cb9ff7$4ae76bd0$e0b64370$@in>
<AANLkTingdF1PX5r9FRfdUh24=uCryMhw2htPb28iS=+=@mail.gmail.com>
<1295360865916-3346231.post@n5.nabble.com>
<AANLkTi=jmJ_b+H_rgR40rDjPdYDXtM7NpgnD5TckR5ck@mail.gmail.com>
<000f01cbb790$48e14e90$daa3ebb0$@in>
<AANLkTimDqzEDwhYN65L-qsHC2W1O7VMg8oS+__tAd6Uh@mail.gmail.com>
Dear Dave,
Here I missed one thing that we are still using Postgres 8.3 and pgadmin
III- ver 1.10.0 in ubuntu 9.10.
Even though the tables are not displaying in the tree view we can view the
content while querying the tables using the SQL editor of pgadmin.
And this error is not happening in my end and it was reported by one of our
customer.
Regards
Benoy
-----Original Message-----
From: Dave Page [mailto:dpage@pgadmin.org]
Sent: 19 January 2011 13:42
To: Benoygopal
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #5791: Tables are not viewing through pgadmin
On Wed, Jan 19, 2011 at 4:20 AM, Benoygopal <benoy@cdactvm.in> wrote:
> Dear Dave,
> Tables will not visible even after refreshing the tree view and after
> restarting the PC as well.
> It not predictable when the table will start displaying again. Some time
the
> tables displayed in the next day as well.
> However we could able to login to the database,views up to schema but
inside
> schema nothing is visible.
> But we could log and retrieve the data to the tables. Application could
able
> to use triggers stored procedures etc even it is not visible through
> pgadmin. Please suggest any input is required from my side or suggest to
> check something related to the postgres database or pgadmin related
> configuration files when this condition occurs again.
There isn't really anything to check config-wise. This has always
worked for hundreds of thousands of users over the 6 or 7 years of
pgAdmin III, so I'm somewhat at a loss to know what to suggest.
How are the tables being created? Are you sure they're in the schema
you think they're in (ie. could the search path in your app put them
somewhere other than where you expect)?
For PostgreSQL 8.4 and 9.0, the query used to get the table info looks
something like the following. You could try running that if the
problem re-occurs (you should change the OID at the end to match the
OID of the schema you're looking in:
SELECT rel.oid, relname, rel.reltablespace AS spcoid, spcname,
pg_get_userbyid(relowner) AS relowner, relacl, relhasoids,
relhassubclass, reltuples, description, conname, conkey,
EXISTS(select 1 FROM pg_trigger
JOIN pg_proc pt ON pt.oid=tgfoid AND
pt.proname='logtrigger'
JOIN pg_proc pc ON
pc.pronamespace=pt.pronamespace AND pc.proname='slonyversion'
WHERE tgrelid=rel.oid) AS isrepl
, substring(array_to_string(rel.reloptions, ',') from
'fillfactor=([0-9]*)') AS fillfactor
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_enabled=([a-z|0-9]*)') AS autovacuum_enabled
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_vacuum_threshold=([0-9]*)') AS autovacuum_vacuum_threshold
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_vacuum_scale_factor=([0-9]*[.][0-9]*)') AS
autovacuum_vacuum_scale_factor
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_analyze_threshold=([0-9]*)') AS
autovacuum_analyze_threshold
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_analyze_scale_factor=([0-9]*[.][0-9]*)') AS
autovacuum_analyze_scale_factor
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_vacuum_cost_delay=([0-9]*)') AS
autovacuum_vacuum_cost_delay
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_vacuum_cost_limit=([0-9]*)') AS
autovacuum_vacuum_cost_limit
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_freeze_min_age=([0-9]*)') AS autovacuum_freeze_min_age
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_freeze_max_age=([0-9]*)') AS autovacuum_freeze_max_age
, substring(array_to_string(rel.reloptions, ',') FROM
'autovacuum_freeze_table_age=([0-9]*)') AS autovacuum_freeze_table_age
, rel.reloptions AS reloptions
, (CASE WHEN rel.reltoastrelid = 0 THEN false ELSE true END) AS
hastoasttable
, reloftype, typname
FROM pg_class rel
LEFT OUTER JOIN pg_tablespace ta on ta.oid=rel.reltablespace
LEFT OUTER JOIN pg_description des ON (des.objoid=rel.oid AND
des.objsubid=0)
LEFT OUTER JOIN pg_constraint c ON c.conrelid=rel.oid AND c.contype='p'
LEFT JOIN pg_type ON reloftype=pg_type.oid
WHERE relkind IN ('r','s','t') AND relnamespace = 2200::oid
ORDER BY relname
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
______________________________________
Scanned and protected by Email scanner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: benoy@cdactvm.in, dpage@pgadmin.org
Subject: Re: BUG #5791: Tables are not viewing through pgadmin
In-Reply-To: <000401cbb859$7a984230$6fc8c690$@in>
References: <201012170403.oBH43okq036431@wwwmaster.postgresql.org> <4D0CC9E602000025000387A0@gw.wicourts.gov> <000301cb9ff7$4ae76bd0$e0b64370$@in> <AANLkTingdF1PX5r9FRfdUh24=uCryMhw2htPb28iS=+=@mail.gmail.com> <1295360865916-3346231.post@n5.nabble.com> <AANLkTi=jmJ_b+H_rgR40rDjPdYDXtM7NpgnD5TckR5ck@mail.gmail.com> <000f01cbb790$48e14e90$daa3ebb0$@in> <AANLkTimDqzEDwhYN65L-qsHC2W1O7VMg8oS+__tAd6Uh@mail.gmail.com> <000401cbb859$7a984230$6fc8c690$@in>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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