RE: Duplicate tables information through metadata queries

From: "ldh(at)laurent-hasson(dot)com" <ldh(at)laurent-hasson(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-jdbc(at)lists(dot)postgresql(dot)org" <pgsql-jdbc(at)lists(dot)postgresql(dot)org>
Subject: RE: Duplicate tables information through metadata queries
Date: 2021-09-08 21:32:03
Message-ID: MN2PR15MB25603242235098C3356C263985D49@MN2PR15MB2560.namprd15.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


From: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
Sent: Wednesday, September 8, 2021 17:24
To: ldh(at)laurent-hasson(dot)com
Cc: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: Duplicate tables information through metadata queries

On Wednesday, September 8, 2021, mailto:ldh(at)laurent-hasson(dot)com <mailto:ldh(at)laurent-hasson(dot)com> wrote:

I am not sure about your solution for cleanup however. Do you mean?

COMMENT ON TABLE PEOPLE.Contact IS 'Blah';

Yes
 

This doesn't seem to have any effect except updating the comment for the second row above. Should I just delete the record from the table for the tables affected? I know this is generally not good practice AT ALL... 😊

Maybe reindex the table first, then do comment on?  It might be worth posting this to -bugs and solicit suggestions on getting out the situation from a better targeted audience.

Also, you mention data corruption, but would that survive a backup/restore?

Both rows should be copied out on backup and copied back in during restore.

David J.
 

------------------------------------------------------------------------------------------------------------------------------------------

Hello David,

VACUUM FULL FREEZE ANALYZE PEOPLE.contact;

No change.

What do you mean by "posting this to -bugs"?

Thank you,
Laurent.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David G. Johnston 2021-09-08 21:41:20 Re: Duplicate tables information through metadata queries
Previous Message ldh@laurent-hasson.com 2021-09-08 21:27:42 JDBC Meta-data performance for Foreign Keys