AW: AW: No result when selecting attstattarget from pg_attribute

From: "William Sescu (Suva)" <william(dot)sescu(at)suva(dot)ch>
To: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: AW: AW: No result when selecting attstattarget from pg_attribute
Date: 2019-11-28 15:40:29
Message-ID: e05d4d7d0da3470bba344db1295d0657@suva.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks. It looks like that I have mixed up there a few things.
Now it's clear.

-----Ursprüngliche Nachricht-----
Von: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Gesendet: Donnerstag, 28. November 2019 16:29
An: Sescu William (SW0) <william(dot)sescu(at)suva(dot)ch>
Cc: pgsql-admin(at)postgresql(dot)org
Betreff: Re: AW: No result when selecting attstattarget from pg_attribute

"William Sescu (Suva)" <william(dot)sescu(at)suva(dot)ch> writes:
> Thank you Tom for clarification. However, in regards of pg_upgrade,
> which does not transfer statistics, how do I know how to create the "CREATE STATISTICS" on the new PostgreSQL version?

You are apparently confusing the *definition* of a statistics object with the *content*. pg_upgrade will certainly transfer the former.
Run ANALYZE to re-fill the latter.

regards, tom lane

________________________________

Disclaimer:

Diese Nachricht und ihr eventuell angehängte Dateien sind nur für den Adressaten bestimmt. Sie kann vertrauliche oder gesetzlich geschützte Daten oder Informationen beinhalten. Falls Sie diese Nachricht irrtümlich erreicht hat, bitten wir Sie höflich, diese unter Ausschluss jeglicher Reproduktion zu löschen und die absendende Person zu benachrichtigen. Danke für Ihre Hilfe.

This message and any attached files are for the sole use of the recipient named above. It may contain confidential or legally protected data or information. If you have received this message in error, please delete it without making any copies whatsoever and notify the sender. Thank you for your assistance.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jose Redondo 2019-12-02 22:47:50 Portable PGAdmin
Previous Message Tom Lane 2019-11-28 15:29:09 Re: AW: No result when selecting attstattarget from pg_attribute