pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Broken postgres links need to find callers
Date: Wed, 31 Oct 2018 13:09:14 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com> (raw)
In-Reply-To: <96d6b8d6-7445-47af-c602-3f3b4a968061@aklaver.com>
References: <alpine.LNX.2.20.1810310925130.26169@salmo.appl-ecosys.com>
	<05d27b1e-967f-6200-2e7f-c69fc33f5c03@aklaver.com>
	<alpine.LNX.2.20.1810311051560.26169@salmo.appl-ecosys.com>
	<8ed52b5d-e2cd-6c0c-bdc3-85c72b1fc16d@aklaver.com>
	<alpine.LNX.2.20.1810311108220.26169@salmo.appl-ecosys.com>
	<24964a85-bb7d-9753-173c-559ffca47959@aklaver.com>
	<alpine.LNX.2.20.1810311128360.26169@salmo.appl-ecosys.com>
	<687c3449-b875-8e23-6bdb-85157c9e8da8@aklaver.com>
	<alpine.LNX.2.20.1810311212170.26169@salmo.appl-ecosys.com>
	<96d6b8d6-7445-47af-c602-3f3b4a968061@aklaver.com>

On Wed, 31 Oct 2018, Adrian Klaver wrote:

> What does:
> pg_ctl --version
> show?

# pg_ctl --version
pg_ctl (PostgreSQL) 10.3

> So when you added the new application did you make any other changes?

   I did not add another application; grass has been installed here for
decades. Because I could not connect to the postgres database for a spatial
project it was suggested that I expand the listen_addresses to include the
server name, too.

> At this point you need to get back to two discreet Postgres installs 10.2 and 
> 10.3.

    I did not have two distinct installations of postgres, only the 10.3
version. It was some of the directories labeled 10.2/ that seem to be the
issue.

    When I run pg_config --configure this is the result:
# ./pg_config --configure
'--prefix=/usr/lib/postgresql/10.2' '--sysconfdir=/etc/postgresql/10.2'
'--includedir=/usr/include' '--datarootdir=/usr/share' '--mandir=/usr/man'
'--docdir=/usr/doc/postgresql-10.3' '--datadir=/usr/share/postgresql-10.2'
'--with-openssl' '--with-tcl' '--with-perl' '--with-python' '--with-libxml'
'--with-libxslt' '--enable-thread-safety'
'--with-system-tzdata=/usr/share/zoneinfo' '--disable-nls'
'--build=i586-slackware-linux' 'build_alias=i586-slackware-linux'
'CFLAGS=-O2 -march=i586 -mtune=i686' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig

   Notice that the prefix, sysconfdir, and datadir specify 10.2. But, the
build script shows the version as 10.3 and uses that to configure the build
(entire script will be provided on request):

PRGNAM=postgresql
VERSION=${VERSION:-10.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

PG_VERSION=${PG_VERSION:-10.3}
PG_PORT=${PG_PORT:-5432}
PG_UID=${PG_UID:-209}
PG_GID=${PG_GID:-209}
...
./configure \
   --prefix=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/$PG_VERSION \
   --sysconfdir=/etc/$PRGNAM/$PG_VERSION \
   --includedir=/usr/include \
   --datarootdir=/usr/share \
   --mandir=/usr/man \
   --docdir=/usr/doc/$PRGNAM-$VERSION \
   --datadir=/usr/share/$PRGNAM-$PG_VERSION \

   The build script sets the prefix, sysconfdir, and datadir to $PG_VERSION
which is defined as 10.3 so why 10.2 shows up in pg_config makes no sense to
me. And why psql worked without issue from the upgrade date of March 1 to
today with this inconsistency also puzzles me.

   If it matters, there's no /etc/postgresql/ and none in the backups since
the beginning of August.

Regards,

Rich




view thread (33+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: Broken postgres links need to find callers
  In-Reply-To: <alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.1810310925130.26169@salmo.appl-ecosys.com> <05d27b1e-967f-6200-2e7f-c69fc33f5c03@aklaver.com> <alpine.LNX.2.20.1810311051560.26169@salmo.appl-ecosys.com> <8ed52b5d-e2cd-6c0c-bdc3-85c72b1fc16d@aklaver.com> <alpine.LNX.2.20.1810311108220.26169@salmo.appl-ecosys.com> <24964a85-bb7d-9753-173c-559ffca47959@aklaver.com> <alpine.LNX.2.20.1810311128360.26169@salmo.appl-ecosys.com> <687c3449-b875-8e23-6bdb-85157c9e8da8@aklaver.com> <alpine.LNX.2.20.1810311212170.26169@salmo.appl-ecosys.com> <96d6b8d6-7445-47af-c602-3f3b4a968061@aklaver.com> <alpine.LNX.2.20.1810311250040.26169@salmo.appl-ecosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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