RH 7.0 problems with PG 7_1-1

Поиск
Список
Период
Сортировка
От Eric Praetzel
Тема RH 7.0 problems with PG 7_1-1
Дата
Msg-id 200105281148.HAA11235@ecexh.uwaterloo.ca
обсуждение исходный текст
Список pgsql-ports
Good day.

I have tried this on two RedHat 7.0 systems.

By default PG 7.0.2 is installed and working fine.
I can grab the PG 7.0.3-8 RPMs from the RedHat 7.1 install CDs and they
  install with some errors; but work fine:

[root@foo /root]# rpm -Uvh postgresql-7.0.3-8.i386.rpm postgresql-server-7.0.3-8.i386.rpm
postgresql-devel-7.0.3-8.i386.rpm 
postgresql                  ##################################################
/sbin/ldconfig: Input file /usr/lib/libesd.so not found.

postgresql-server           ##################################################
/sbin/ldconfig: Input file /usr/lib/libesd.so not found.

postgresql-devel            ##################################################

[root@foo /root]# /etc/rc.d/init.d/postgresql start
createuser
createdb
and then I can connect fine from remote servers

However, every time I try to installed PG 7_1.1 I the server does not
work properly.

[root@arbeau /root]# rpm -Uvh postgresql-7_1-1_i386.rpm postgresql-server-7_1-1_i386.rpm postgresql-libs-7_1-1_i386.rpm
postgresql-devel-7_1-1_i386.rpm 
postgresql                  ##################################################
postgresql-server           ##################################################
/sbin/ldconfig: Input file /usr/lib/libesd.so not found.

postgresql-libs             ##################################################
/sbin/ldconfig: Input file /usr/lib/libesd.so not found.

postgresql-devel            ##################################################

The install goes like this:
[root@arbeau /root]# /etc/rc.d/init.d/postgresql start
Checking postgresql installation: no database files found.
This database system will be initialized with username "postgres".
This user will own all the data files and must also own the server process.

Fixing permissions on existing directory /var/lib/pgsql/data
Creating directory /var/lib/pgsql/data/base
Creating directory /var/lib/pgsql/data/global
Creating directory /var/lib/pgsql/data/pg_xlog
Creating template1 database in /var/lib/pgsql/data/base/1
DEBUG:  database system was shut down at 2001-05-28 06:44:40 EDT
DEBUG:  CheckPoint record at (0, 8)
DEBUG:  Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 16384
DEBUG:  database system is in production state
Creating global relations in /var/lib/pgsql/data/global
DEBUG:  database system was shut down at 2001-05-28 06:44:52 EDT
DEBUG:  CheckPoint record at (0, 108)
DEBUG:  Redo record at (0, 108); Undo record at (0, 0); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 17199
DEBUG:  database system is in production state
Initializing pg_shadow.
Enabling unlimited row width for system tables.
Creating system views.
Loading pg_description.
Setting lastsysoid.
Vacuuming database.
Copying template1 to template0.

Success. You can now start the database server using:
....

I edit the pg_hba.conf file to give a remote server access and it keeps
getting refused access.  The database works fine; but I can't connect
to it.

I uninstall it, rm the /var/lib/pgsql/data directory; install 7.0.3 the
same way and all is well.


One thing that would be really usefull is some examples of error
handling in writing Perl scripts for DBI / PG.
Currently if I have typo's [say an extra quote in an UPDATE] then Perl
core dumps, the web page stops getting painted at that point and there
are no logged errors.
Even though I use || die $dbh->errstr; after every database command;
the Perl core dumps more often than it prints an error message. When
it does print an error message it is meaningless.  ie it may print "7"
and that is all.

This is probably a DBI issue or perhaps the DBI-PG driver or ???


Thanks

  - Eric Praetzel

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

Предыдущее
От: "Srikanth N. Rao"
Дата:
Сообщение: Compile problems 7.1.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Compile problems 7.1.1