pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feeddatabase files are incompatible with server, after computer restart
18+ messages / 6 participants
[nested] [flat]
* database files are incompatible with server, after computer restart
@ 2006-08-29 01:35 CSN <cool_screen_name90001@yahoo.com>
0 siblings, 1 reply; 18+ messages in thread
From: CSN @ 2006-08-29 01:35 UTC (permalink / raw)
To: pgsql-general
I installed and started PostgreSQL and it worked fine
for days. Then I restarted my computer and now I can't
start PostgreSQL ('pg_ctl -D pgdata -l pgdata/psql.log
start'). Here's what's in my log:
LOG: received immediate shutdown request
WARNING: terminating connection because of crash of
another server process
DETAIL: The postmaster has commanded this server
process to roll back the current transaction and exit,
because another server process exited abnormally and
possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to
the database and repeat your command.
FATAL: database files are incompatible with server
DETAIL: The database cluster was initialized without
HAVE_INT64_TIMESTAMP but the server was compiled with
HAVE_INT64_TIMESTAMP.
HINT: It looks like you need to recompile or initdb.
I guess my computer restart didn't agree with
PostgreSQL. But I've had crashes before and never had
a problem getting PostgreSQL going again. Anybody know
how to fix this? I also tried 'pg_resetxlog -f pgdata'
but still get the same error trying to start up.
Thanks,
csn
Mac OS 10.4.7
PostgreSQL 8.1.3
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after
@ 2006-08-29 02:11 Douglas McNaught <doug@mcnaught.org>
parent: CSN <cool_screen_name90001@yahoo.com>
0 siblings, 1 reply; 18+ messages in thread
From: Douglas McNaught @ 2006-08-29 02:11 UTC (permalink / raw)
To: CSN <cool_screen_name90001@yahoo.com>; +Cc: pgsql-general
CSN <cool_screen_name90001@yahoo.com> writes:
> DETAIL: The database cluster was initialized without
> HAVE_INT64_TIMESTAMP but the server was compiled with
> HAVE_INT64_TIMESTAMP.
> HINT: It looks like you need to recompile or initdb.
Is it possible you have two PG installs on this machine, and you're
trying to start the wrong one? Because it's hard to see how a restart
could cause this error message--it's saying that your data files are
incompatible with the code you're trying to run.
-Doug
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after computer restart
@ 2006-08-29 02:25 CSN <cool_screen_name90001@yahoo.com>
parent: Douglas McNaught <doug@mcnaught.org>
0 siblings, 1 reply; 18+ messages in thread
From: CSN @ 2006-08-29 02:25 UTC (permalink / raw)
To: Douglas McNaught <doug@mcnaught.org>; +Cc: pgsql-general
I don't think so -- I followed the instructions here:
http://www.robbyonrails.com/articles/2006/05/29/install-ruby-rails-and-postgresql-on-osx
But looking around, I see there's a pg_ctl in
/usr/local/bin, but 'port contents postgresql8' shows
a pg_ctl in /opt/local/lib/pgsql8/bin.
~ $ ll /opt/local/lib/pgsql8/bin/pg_ctl
-rwxr-xr-x 2 root admin 47380 Aug 24 14:24
/opt/local/lib/pgsql8/bin/pg_ctl
~ $ ll /usr/local/bin/pg_ctl
-rwxr-xr-x 1 root admin 149456 Apr 23 15:00
/usr/local/bin/pg_ctl
I can't remember if I tried installing PostgreSQL some
time ago using Fink or some other way. Any further
ideas?
Thanks,
csn
--- Douglas McNaught <doug@mcnaught.org> wrote:
> CSN <cool_screen_name90001@yahoo.com> writes:
>
> > DETAIL: The database cluster was initialized
> without
> > HAVE_INT64_TIMESTAMP but the server was compiled
> with
> > HAVE_INT64_TIMESTAMP.
> > HINT: It looks like you need to recompile or
> initdb.
>
> Is it possible you have two PG installs on this
> machine, and you're
> trying to start the wrong one? Because it's hard to
> see how a restart
> could cause this error message--it's saying that
> your data files are
> incompatible with the code you're trying to run.
>
> -Doug
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after
@ 2006-08-29 13:12 Douglas McNaught <doug@mcnaught.org>
parent: CSN <cool_screen_name90001@yahoo.com>
0 siblings, 1 reply; 18+ messages in thread
From: Douglas McNaught @ 2006-08-29 13:12 UTC (permalink / raw)
To: CSN <cool_screen_name90001@yahoo.com>; +Cc: pgsql-general
CSN <cool_screen_name90001@yahoo.com> writes:
> I don't think so -- I followed the instructions here:
>
> http://www.robbyonrails.com/articles/2006/05/29/install-ruby-rails-and-postgresql-on-osx
>
> But looking around, I see there's a pg_ctl in
> /usr/local/bin, but 'port contents postgresql8' shows
> a pg_ctl in /opt/local/lib/pgsql8/bin.
Which one are you intending to run, and which one is first in the
PATH?
-Doug
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after computer restart
@ 2006-08-29 21:15 CSN <cool_screen_name90001@yahoo.com>
parent: Douglas McNaught <doug@mcnaught.org>
0 siblings, 1 reply; 18+ messages in thread
From: CSN @ 2006-08-29 21:15 UTC (permalink / raw)
To: Douglas McNaught <doug@mcnaught.org>; +Cc: pgsql-general
--- Douglas McNaught <doug@mcnaught.org> wrote:
> CSN <cool_screen_name90001@yahoo.com> writes:
>
> > I don't think so -- I followed the instructions
> here:
> >
> >
>
http://www.robbyonrails.com/articles/2006/05/29/install-ruby-rails-and-postgresql-on-osx
> >
> > But looking around, I see there's a pg_ctl in
> > /usr/local/bin, but 'port contents postgresql8'
> shows
> > a pg_ctl in /opt/local/lib/pgsql8/bin.
>
> Which one are you intending to run, and which one is
> first in the
> PATH?
>
> -Doug
>
I don't know which to run now! I tried both
'/opt/local/lib/pgsql8/bin/pg_ctl start -D pgdata' and
putting /opt/local/lib/pgsql8/bin before
/usr/local/bin in PATH and still get the same error.
Is there some way to specify HAVE_INT64_TIMESTAMP to
pg_ctl or just export what's in the existing pgdata
and initdb a new dir and import?
Thanks,
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after
@ 2006-08-29 21:54 Douglas McNaught <doug@mcnaught.org>
parent: CSN <cool_screen_name90001@yahoo.com>
0 siblings, 1 reply; 18+ messages in thread
From: Douglas McNaught @ 2006-08-29 21:54 UTC (permalink / raw)
To: CSN <cool_screen_name90001@yahoo.com>; +Cc: pgsql-general
CSN <cool_screen_name90001@yahoo.com> writes:
> I don't know which to run now! I tried both
> '/opt/local/lib/pgsql8/bin/pg_ctl start -D pgdata' and
You might want an absolute path for 'pgdata' here--have you tried
that?
> putting /opt/local/lib/pgsql8/bin before
> /usr/local/bin in PATH and still get the same error.
Why don't you run both pg_ctl binaries with the --version option, then
compare against the pg_control file in the data directory (I think
that's what it's called). That should hopeully tell you which one to
run.
> Is there some way to specify HAVE_INT64_TIMESTAMP to
> pg_ctl or just export what's in the existing pgdata
> and initdb a new dir and import?
You need to have the server running to export. :)
I'm pretty sure you can get it running; you just haven't tried the
right way yet.
-Doug
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after computer restart
@ 2006-08-29 22:03 CSN <cool_screen_name90001@yahoo.com>
parent: Douglas McNaught <doug@mcnaught.org>
0 siblings, 0 replies; 18+ messages in thread
From: CSN @ 2006-08-29 22:03 UTC (permalink / raw)
To: Douglas McNaught <doug@mcnaught.org>; +Cc: pgsql-general
--- Douglas McNaught <doug@mcnaught.org> wrote:
> CSN <cool_screen_name90001@yahoo.com> writes:
>
> > I don't know which to run now! I tried both
> > '/opt/local/lib/pgsql8/bin/pg_ctl start -D pgdata'
> and
>
> You might want an absolute path for 'pgdata'
> here--have you tried
> that?
~ $ /opt/local/lib/pgsql8/bin/pg_ctl start -D
/Users/csn/pgdata/
postmaster starting
~ $ FATAL: database files are incompatible with
server
DETAIL: The database cluster was initialized without
HAVE_INT64_TIMESTAMP but the server was compiled with
HAVE_INT64_TIMESTAMP.
HINT: It looks like you need to recompile or initdb.
> > putting /opt/local/lib/pgsql8/bin before
> > /usr/local/bin in PATH and still get the same
> error.
>
> Why don't you run both pg_ctl binaries with the
> --version option, then
> compare against the pg_control file in the data
> directory (I think
> that's what it's called). That should hopeully tell
> you which one to run
~ $ /usr/local/bin/pg_ctl --version
pg_ctl (PostgreSQL) 8.1.3
~ $ /opt/local/lib/pgsql8/bin/pg_ctl --version
pg_ctl (PostgreSQL) 8.1.3
pgdata/global/pg_control seems to be binary.
pgdata/PG_VERSION has 8.1 in it.
> > Is there some way to specify HAVE_INT64_TIMESTAMP
> to
> > pg_ctl or just export what's in the existing
> pgdata
> > and initdb a new dir and import?
>
> You need to have the server running to export. :)
>
> I'm pretty sure you can get it running; you just
> haven't tried the
> right way yet.
I'm stymied. ;)
Thanks,
csn
>
> -Doug
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server, after computer restart
@ 2006-08-29 23:23 CSN <cool_screen_name90001@yahoo.com>
0 siblings, 0 replies; 18+ messages in thread
From: CSN @ 2006-08-29 23:23 UTC (permalink / raw)
To: Douglas McNaught <doug@mcnaught.org>; +Cc: pgsql-general
--- Douglas McNaught <doug@mcnaught.org> wrote:
> CSN <cool_screen_name90001@yahoo.com> writes:
>
> > I'm stymied. ;)
>
> So you've tried running both pg_ctl binaries against the data
> directory and both don't work?
Yes.
> I wonder how you ever had a database
> working in that case. :)
Me too! After 'initdb -D pgdata' and 'pg_ctl start -D pgdata' it ran for days during which I used
it quite a bit. But once I restarted the computer...
> Are you sure you have the right data directory?
> Maybe the one you
> think was used isn't the one that was actually used.
Yes. But I looked around and couldn't find any other data dirs.
> If you can't get either to work, you should hopefully be able to
> compile a version of the code with HAVE_64BIT_TIMESTAMP and get it to
> start up with your data.
Hmm, I installed using DarwinPorts (I think, if that uses 'port') -- I wonder if it can be
reinstalled that way and pass a HAVE_64BIT_TIMESTAMP flag to it. Besides my current problem, does
HAVE_64BIT_TIMESTAMP have much impact on things?
> But I still strongly suspect this'll be an
> easy fix once we figure it out. :)
Heh, I hope. :) I've never had a problem with PG before, and I have no idea how or why this
happened (other than it coincided with rebooting).
Thanks,
csn
> -Doug
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* database files are incompatible with server
@ 2019-08-22 23:52 Igal @ Lucee.org <igal@lucee.org>
0 siblings, 1 reply; 18+ messages in thread
From: Igal @ Lucee.org @ 2019-08-22 23:52 UTC (permalink / raw)
To: pgsql-general
I have a data directory that was created by Postgres 12 (I thought beta
3 but now am not sure anymore) running in Docker.
I have installed Postgres 12b3 as a Systemd service and am trying to set
the cluster to the same PGDATA. I have set the owner of the directory
to postgres:postrgres, and the permissions to 0700, but I'm getting the
following error:
2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
incompatible with server
2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
initialized with CATALOG_VERSION_NO 201906161, but the server was
compiled with CATALOG_VERSION_NO 201907221.
How can I start up the Cluster?
Is version 201906161 beta 2?
Would running PG12 beta 2 work?
Would running initdb destroy the data?
Thank you,
Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/;
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 00:08 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Igal @ Lucee.org <igal@lucee.org>
0 siblings, 4 replies; 18+ messages in thread
From: Adrian Klaver @ 2019-08-23 00:08 UTC (permalink / raw)
To: Igal @ Lucee.org <igal@lucee.org>; pgsql-general
On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
> I have a data directory that was created by Postgres 12 (I thought beta
> 3 but now am not sure anymore) running in Docker.
>
> I have installed Postgres 12b3 as a Systemd service and am trying to set
> the cluster to the same PGDATA. I have set the owner of the directory
> to postgres:postrgres, and the permissions to 0700, but I'm getting the
> following error:
>
> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
> incompatible with server
> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
> initialized with CATALOG_VERSION_NO 201906161, but the server was
> compiled with CATALOG_VERSION_NO 201907221.
So the cluster is from an older version then the server.
>
> How can I start up the Cluster?
>
> Is version 201906161 beta 2?
Yes:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
>
> Would running PG12 beta 2 work?
Worth a try.
>
> Would running initdb destroy the data?
initdb will not run on a directory with files in it:
bin/initdb -D /usr/local/pgsql11_dev/
The files belonging to this database system will be owned by user
"postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
initdb: directory "/usr/local/pgsql11_dev" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/usr/local/pgsql11_dev" or run initdb
with an argument other than "/usr/local/pgsql11_dev".
>
> Thank you,
>
> Igal Sapir
> Lucee Core Developer
> Lucee.org <http://lucee.org/;
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 01:29 Ron <ronljohnsonjr@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
3 siblings, 1 reply; 18+ messages in thread
From: Ron @ 2019-08-23 01:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 8/22/19 7:08 PM, Adrian Klaver wrote:
> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>> I have a data directory that was created by Postgres 12 (I thought beta 3
>> but now am not sure anymore) running in Docker.
>>
>> I have installed Postgres 12b3 as a Systemd service and am trying to set
>> the cluster to the same PGDATA. I have set the owner of the directory to
>> postgres:postrgres, and the permissions to 0700, but I'm getting the
>> following error:
>>
>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>> incompatible with server
>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
>> initialized with CATALOG_VERSION_NO 201906161, but the server was
>> compiled with CATALOG_VERSION_NO 201907221.
>
> So the cluster is from an older version then the server.
Aren't Pg files supposed to be compatible within minor versions?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 01:49 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 18+ messages in thread
From: Adrian Klaver @ 2019-08-23 01:49 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
On 8/22/19 6:29 PM, Ron wrote:
> On 8/22/19 7:08 PM, Adrian Klaver wrote:
>> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>>> I have a data directory that was created by Postgres 12 (I thought
>>> beta 3 but now am not sure anymore) running in Docker.
>>>
>>> I have installed Postgres 12b3 as a Systemd service and am trying to
>>> set the cluster to the same PGDATA. I have set the owner of the
>>> directory to postgres:postrgres, and the permissions to 0700, but I'm
>>> getting the following error:
>>>
>>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>>> incompatible with server
>>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
>>> initialized with CATALOG_VERSION_NO 201906161, but the server was
>>> compiled with CATALOG_VERSION_NO 201907221.
>>
>> So the cluster is from an older version then the server.
>
> Aren't Pg files supposed to be compatible within minor versions?
>
Betas are a moving target so that does not hold:
https://www.postgresql.org/developer/beta/
"Features are subject to changes that are backwards incompatible at any
time during the development of the betas, and could possibly be removed
altogether."
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 02:12 Ron <ronljohnsonjr@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 18+ messages in thread
From: Ron @ 2019-08-23 02:12 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 8/22/19 8:49 PM, Adrian Klaver wrote:
> On 8/22/19 6:29 PM, Ron wrote:
>> On 8/22/19 7:08 PM, Adrian Klaver wrote:
>>> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>>>> I have a data directory that was created by Postgres 12 (I thought beta
>>>> 3 but now am not sure anymore) running in Docker.
>>>>
>>>> I have installed Postgres 12b3 as a Systemd service and am trying to
>>>> set the cluster to the same PGDATA. I have set the owner of the
>>>> directory to postgres:postrgres, and the permissions to 0700, but I'm
>>>> getting the following error:
>>>>
>>>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>>>> incompatible with server
>>>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
>>>> initialized with CATALOG_VERSION_NO 201906161, but the server was
>>>> compiled with CATALOG_VERSION_NO 201907221.
>>>
>>> So the cluster is from an older version then the server.
>>
>> Aren't Pg files supposed to be compatible within minor versions?
>>
>
> Betas are a moving target so that does not hold:
>
> https://www.postgresql.org/developer/beta/
>
> "Features are subject to changes that are backwards incompatible at any
> time during the development of the betas, and could possibly be removed
> altogether."
Features as in the on-disk structure?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 02:31 Igal @ Lucee.org <igal@lucee.org>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
3 siblings, 0 replies; 18+ messages in thread
From: Igal @ Lucee.org @ 2019-08-23 02:31 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
Adrian,
On 8/22/2019 5:08 PM, Adrian Klaver wrote:
> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>> I have a data directory that was created by Postgres 12 (I thought
>> beta 3 but now am not sure anymore) running in Docker.
>>
>> I have installed Postgres 12b3 as a Systemd service and am trying to
>> set the cluster to the same PGDATA. I have set the owner of the
>> directory to postgres:postrgres, and the permissions to 0700, but I'm
>> getting the following error:
>>
>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>> incompatible with server
>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
>> initialized with CATALOG_VERSION_NO 201906161, but the server was
>> compiled with CATALOG_VERSION_NO 201907221.
>
> So the cluster is from an older version then the server.
>
>> How can I start up the Cluster?
>>
>> Is version 201906161 beta 2?
>
> Yes:
>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
>
Thanks for the link. It's good to know where these things are stored.
Thank you,
Igal
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 02:36 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Ron <ronljohnsonjr@gmail.com>
0 siblings, 0 replies; 18+ messages in thread
From: Adrian Klaver @ 2019-08-23 02:36 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
On 8/22/19 7:12 PM, Ron wrote:
> On 8/22/19 8:49 PM, Adrian Klaver wrote:
>> On 8/22/19 6:29 PM, Ron wrote:
>>> On 8/22/19 7:08 PM, Adrian Klaver wrote:
>>>> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>>>>> I have a data directory that was created by Postgres 12 (I thought
>>>>> beta 3 but now am not sure anymore) running in Docker.
>>>>>
>>>>> I have installed Postgres 12b3 as a Systemd service and am trying
>>>>> to set the cluster to the same PGDATA. I have set the owner of the
>>>>> directory to postgres:postrgres, and the permissions to 0700, but
>>>>> I'm getting the following error:
>>>>>
>>>>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>>>>> incompatible with server
>>>>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster
>>>>> was initialized with CATALOG_VERSION_NO 201906161, but the server
>>>>> was compiled with CATALOG_VERSION_NO 201907221.
>>>>
>>>> So the cluster is from an older version then the server.
>>>
>>> Aren't Pg files supposed to be compatible within minor versions?
>>>
>>
>> Betas are a moving target so that does not hold:
>>
>> https://www.postgresql.org/developer/beta/
>>
>> "Features are subject to changes that are backwards incompatible at
>> any time during the development of the betas, and could possibly be
>> removed altogether."
>
> Features as in the on-disk structure?
>
Short version:
T
he error was about the catversion which tracks the system catalog state.
Adding/subtracting features can change that state and make clusters
incompatible.
Long version:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 03:42 Igal @ Lucee.org <igal@lucee.org>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
3 siblings, 0 replies; 18+ messages in thread
From: Igal @ Lucee.org @ 2019-08-23 03:42 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
On 8/22/2019 5:08 PM, Adrian Klaver wrote:
> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>> I have a data directory that was created by Postgres 12 (I thought
>> beta 3 but now am not sure anymore) running in Docker.
>>
>> I have installed Postgres 12b3 as a Systemd service and am trying to
>> set the cluster to the same PGDATA. I have set the owner of the
>> directory to postgres:postrgres, and the permissions to 0700, but I'm
>> getting the following error:
>>
>> 2019-08-22 23:40:48.759 UTC [23044] FATAL: database files are
>> incompatible with server
>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL: The database cluster was
>> initialized with CATALOG_VERSION_NO 201906161, but the server was
>> compiled with CATALOG_VERSION_NO 201907221.
>
> So the cluster is from an older version then the server.
>
>>
>> How can I start up the Cluster?
>>
>> Is version 201906161 beta 2?
>
> Yes:
>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
>
>>
>> Would running PG12 beta 2 work?
>
> Worth a try.
That worked. I used the Docker image postgres:12-beta2 to bring up the
server.
One issue that I kept having was error messages like chown: changing
ownership of '...': Permission denied. That turned out to be an SELinux
issue on the CentOS machine. I have set SELinux to permissive mode
temporarily to bring the server up. Sharing it here for the next guy
(most likely my future self).
Thanks again,
Igal
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 04:15 Tom Lane <tgl@sss.pgh.pa.us>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
3 siblings, 1 reply; 18+ messages in thread
From: Tom Lane @ 2019-08-23 04:15 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Igal @ Lucee.org <igal@lucee.org>; pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>> How can I start up the Cluster?
>> Is version 201906161 beta 2?
> Yes:
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
FWIW, if you have both beta2 and beta3 executables at hand, it should
work to do a pg_upgrade to convert the cluster to beta3.
regards, tom lane
^ permalink raw reply [nested|flat] 18+ messages in thread
* Re: database files are incompatible with server
@ 2019-08-23 05:46 Igal @ Lucee.org <igal@lucee.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 18+ messages in thread
From: Igal @ Lucee.org @ 2019-08-23 05:46 UTC (permalink / raw)
To: pgsql-general
On 8/22/2019 9:15 PM, Tom Lane wrote:
> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote:
>>> How can I start up the Cluster?
>>> Is version 201906161 beta 2?
>
>> Yes:
>> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44...
> FWIW, if you have both beta2 and beta3 executables at hand, it should
> work to do a pg_upgrade to convert the cluster to beta3.
Good to know!
Thank you,
Igal
^ permalink raw reply [nested|flat] 18+ messages in thread
end of thread, other threads:[~2019-08-23 05:46 UTC | newest]
Thread overview: 18+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-29 01:35 database files are incompatible with server, after computer restart CSN <cool_screen_name90001@yahoo.com>
2006-08-29 02:11 ` Re: database files are incompatible with server, after Douglas McNaught <doug@mcnaught.org>
2006-08-29 02:25 ` CSN <cool_screen_name90001@yahoo.com>
2006-08-29 13:12 ` Re: database files are incompatible with server, after Douglas McNaught <doug@mcnaught.org>
2006-08-29 21:15 ` CSN <cool_screen_name90001@yahoo.com>
2006-08-29 21:54 ` Re: database files are incompatible with server, after Douglas McNaught <doug@mcnaught.org>
2006-08-29 22:03 ` CSN <cool_screen_name90001@yahoo.com>
2006-08-29 23:23 Re: database files are incompatible with server, after computer restart CSN <cool_screen_name90001@yahoo.com>
2019-08-22 23:52 database files are incompatible with server Igal @ Lucee.org <igal@lucee.org>
2019-08-23 00:08 ` Re: database files are incompatible with server Adrian Klaver <adrian.klaver@aklaver.com>
2019-08-23 01:29 ` Re: database files are incompatible with server Ron <ronljohnsonjr@gmail.com>
2019-08-23 01:49 ` Re: database files are incompatible with server Adrian Klaver <adrian.klaver@aklaver.com>
2019-08-23 02:12 ` Re: database files are incompatible with server Ron <ronljohnsonjr@gmail.com>
2019-08-23 02:36 ` Re: database files are incompatible with server Adrian Klaver <adrian.klaver@aklaver.com>
2019-08-23 02:31 ` Re: database files are incompatible with server Igal @ Lucee.org <igal@lucee.org>
2019-08-23 03:42 ` Re: database files are incompatible with server Igal @ Lucee.org <igal@lucee.org>
2019-08-23 04:15 ` Re: database files are incompatible with server Tom Lane <tgl@sss.pgh.pa.us>
2019-08-23 05:46 ` Re: database files are incompatible with server Igal @ Lucee.org <igal@lucee.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox