| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | David Rowley <dgrowleyml(at)gmail(dot)com> |
| Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow |
| Date: | 2026-12-01 01:53:48 |
| Message-ID: | CAGRkXqSddsK9gfjWopj=fc76datkL6fqmH7RVVpS4YxyR1eraQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi David,
I like dropping the pg_namespace join. I found one case where v2 fails
and master works. It is an old cluster with
standard_conforming_strings = off
in postgresql.conf, and a schema whose name needs quotes. --check
passes, then the upgrade stops with
Relation names for OID 16436 in database "postgres" do not match:
old name "^A.t", new name "MixedCase.t"
With the setting off, the old server reads '\1' in the new query as the
character with code 1 (the ^A above), not as a back-reference.
Maybe the regexp_replace() part could be this, with no backslash?
regexp_replace(relnamespace::regnamespace::text, '^"|"$', '', 'g')
Thanks,
Shihao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2026-12-01 01:56:57 | Should we add timing output to pg_upgrade? |
| Previous Message | jian he | 2026-12-01 01:37:30 | Re: Row pattern recognition |