pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
TOAST tables bug restoring to PostgreSQL 9.0.4
2+ messages / 2 participants
[nested] [flat]

* TOAST tables bug restoring to PostgreSQL 9.0.4
@ 2011-07-25 18:04  ZIV - Beratung <bteamlab@uni-muenster.de>
  0 siblings, 1 reply; 2+ messages in thread

From: ZIV - Beratung @ 2011-07-25 18:04 UTC (permalink / raw)
  To: pgsql-bugs

Hello PostgreSQL-Team,

i have got a problem with PostgreSQL 9.0.4.

I want to migrate.
If I dump (pg_dump 8.3) any 8.3 PostgreSQL-Database and then
restore (pg_restore 9.0.4) to a PostgreSQL 9.0.4 Database,
the relpages information concerning restored TOAST-tables in pg_class is
wrong.

The relpages entries are all 0 (or 1(TOAST-Index-relations))!

First I thought all information is missing, lost while being dumped and
restored

BUT

select pg_table_size(oid) [oid of the real table i.e. containing pictures]
is (by for example factor 10) bigger than
pg_relation_size(oid) in these cases.

(Also
 - the pg_total_relation_size ist only about 10% smaller than that of its
 migration-origin,
   so the size i think is generally o.k, comprising some compression
   improvement in the new Version
 - the pg_relation_size ist also about 10% smaller than that of its
 migration-origin,
   so it's not detoasted in any way.
)

relpages entries for PostgreSQL-own-TOAST-Tables of pg_statistics and
pg_rewrite are o.k.

Any help/fix would be appreciated.

Arne






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

* Re: TOAST tables bug restoring to PostgreSQL 9.0.4
@ 2011-07-25 18:20  Tom Lane <tgl@sss.pgh.pa.us>
  parent: ZIV - Beratung <bteamlab@uni-muenster.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2011-07-25 18:20 UTC (permalink / raw)
  To: ZIV - Beratung <bteamlab@uni-muenster.de>; +Cc: pgsql-bugs

ZIV - Beratung <bteamlab@uni-muenster.de> writes:
> If I dump (pg_dump 8.3) any 8.3 PostgreSQL-Database and then
> restore (pg_restore 9.0.4) to a PostgreSQL 9.0.4 Database,
> the relpages information concerning restored TOAST-tables in pg_class is
> wrong.

> The relpages entries are all 0 (or 1(TOAST-Index-relations))!

This isn't a bug, it just indicates no ANALYZE has happened yet.

			regards, tom lane



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


end of thread, other threads:[~2011-07-25 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 18:04 TOAST tables bug restoring to PostgreSQL 9.0.4 ZIV - Beratung <bteamlab@uni-muenster.de>
2011-07-25 18:20 ` Tom Lane <tgl@sss.pgh.pa.us>

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