Re: Database cluster binary compatibility accross CPU platforms

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Database cluster binary compatibility accross CPU platforms
Дата
Msg-id 2986606.1598484834@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Database cluster binary compatibility accross CPU platforms  (Aleš Zelený <zeleny.ales@gmail.com>)
Ответы Re: Database cluster binary compatibility accross CPU platforms  (Aleš Zelený <zeleny.ales@gmail.com>)
Список pgsql-general
=?UTF-8?B?QWxlxaEgWmVsZW7DvQ==?= <zeleny.ales@gmail.com> writes:
> is it supported to restore binary backup (pg_basebackup) taken on an amd64
> platform on arm64 while using the same PostgreSQL version?

I wouldn't say it's "supported", but you might get away with it,
if the endianness and datatype alignment rules are the same.
The database does do some basic checks on that using known values
stored in the pg_control file, so it's likely you'd find out
immediately at startup if any of those things don't match.

What's significantly more risky, and which we do *not* have good
checks for, is that unless these are different builds of the same
version of the same operating system, the two platforms may not sort
strings the same way; resulting in all your text indexes being
corrupt.  You can recover from that by reindexing, but it's hardly
a painless transition.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Eric Zhu
Дата:
Сообщение: Calling a SQL function inside a C function
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Calling a SQL function inside a C function