From: | "Andrus" <kobruleht2(at)hot(dot)ee> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Query returns no rows in pg_basebackup cluster |
Date: | 2020-05-22 05:52:28 |
Message-ID: | F46F2062ECC141E1B31DE872816E7F96@dell2 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi!
>No, what it sounds like is the OP tried to physically replicate a
>database on another platform with completely different sorting rules.
The sorting rules for this locale must be the same in both platforms.
Only locale names are different. It looks like windows server does not recognize Linux locale name.
>Which means all his text indexes are corrupt according to the
>destination platform's sorting rules, which easily explains the
>observed misbehavior (ie, index searches not finding the expected rows).
Lot of queries seems working properly.
>REINDEX would fix it.
REINDEX throws error
ERROR: cannot execute REINDEX during recovery
SQL state: 25006
> But the major point here is you can't just ignore
>a collation mismatch, which in turn implies that you can't do physical
>replication from Linux to Windows, or vice versa (and most other
>cross-platform cases are just as dangerous).
Database is used in recovery mode to find proper recovery point and to get data from it in this point.
Locales are actually same. In windows Postgres does not recognize Linux locale name.
>> Database in Windows is in read-only (recovery) mode so it cannot changed.
>Then you might as well just rm -rf it (or whatever the equivalent Windows
>incantation is). On Windows, that database is broken and useless.
Most queries seems to work.
Database should examined to get accidently deleted data from it.
Is making it read-write and index only solution or can it fixed in read-only database also, e-q forcing same local in postgres.conf
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2020-05-22 05:56:30 | Re: Query returns no rows in pg_basebackup cluster |
Previous Message | Andrus | 2020-05-22 05:40:51 | Re: Query returns no rows in pg_basebackup cluster |