pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Incorrect version of initdb
2+ messages / 2 participants
[nested] [flat]

* Incorrect version of initdb
@ 2020-09-30 06:01 rob stone <floriparob@gmail.com>
  2020-09-30 07:57 ` Re: Incorrect version of initdb Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 2+ messages in thread

From: rob stone @ 2020-09-30 06:01 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org

Hello,

Installed postgresql-13 from Debian repos.

postgres@roblaptop:/usr/lib/postgresql/13/bin$ initdb -V
initdb (PostgreSQL) 12.4 (Debian 12.4-1)


PG_VERSION is initialised as 12.

However,

postgres@roblaptop:/usr/lib/postgresql/13/bin$ createdb -V
createdb (PostgreSQL) 13.0 (Debian 13.0-2)
pg_ctl (PostgreSQL) 12.4 (Debian 12.4-1)
pg_dump (PostgreSQL) 13.0 (Debian 13.0-2)

Debian OS:- Linux roblaptop 5.8.0-2-amd64 #1 SMP Debian 5.8.10-1 (2020-
09-19) x86_64 GNU/Linux
This is just a development box.









^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Incorrect version of initdb
  2020-09-30 06:01 Incorrect version of initdb rob stone <floriparob@gmail.com>
@ 2020-09-30 07:57 ` Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Magnus Hagander @ 2020-09-30 07:57 UTC (permalink / raw)
  To: rob stone <floriparob@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

On Wed, Sep 30, 2020 at 8:01 AM rob stone <floriparob@gmail.com> wrote:

> Hello,
>
> Installed postgresql-13 from Debian repos.
>
> postgres@roblaptop:/usr/lib/postgresql/13/bin$ initdb -V
> initdb (PostgreSQL) 12.4 (Debian 12.4-1)
>

This does not execute initdb from the 13 directory, it executes it from the
one in the path.

If you run "./initdb -V", you should see version 13.



>
>
> PG_VERSION is initialised as 12.
>
> However,
>
> postgres@roblaptop:/usr/lib/postgresql/13/bin$ createdb -V
> createdb (PostgreSQL) 13.0 (Debian 13.0-2)
> pg_ctl (PostgreSQL) 12.4 (Debian 12.4-1)
> pg_dump (PostgreSQL) 13.0 (Debian 13.0-2)
>
> Debian OS:- Linux roblaptop 5.8.0-2-amd64 #1 SMP Debian 5.8.10-1 (2020-
> 09-19) x86_64 GNU/Linux
> This is just a development box.
>


initdb is in the postgresql-13 package, and createdb is in
postgresql-client-13. Perhaps you only installed/upgraded one of them?

Since you are in debian, you should also look at using pg_createcluster
instead of raw initdb. It'll set things up properly with service starting
and permissions and such things automatically for you there.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-09-30 07:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 06:01 Incorrect version of initdb rob stone <floriparob@gmail.com>
2020-09-30 07:57 ` Magnus Hagander <magnus@hagander.net>

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