473,383 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Problem while OS-Update

Hello,
upgrading my OS from RedHat 8.0 to FC2, postgresql was also
automatically updated from 7.2. to 7.4. Unfortunately, I did not
"dumpall"... How can I get my data??? I copied the data-folder to
another location and so got running the new postgresql-server. I tried
to install the old 7.2.4.tar.gz in a new folder, but it don't go further
than ./configure. gmake gives the following lines at the end: (second
time tiping gmake)

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-Wl,-rpath,/usr/local/pgsql/lib -export-dynamic access/SUBSYS.o
bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o
executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
utils/SUBSYS.o -lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd -lreadline
-ltermcap -o postgres
commands/SUBSYS.o(.text+0x420a): In function `DoCopy':
: undefined reference to `errno'
commands/SUBSYS.o(.text+0x4210): In function `DoCopy':
: undefined reference to `errno'
commands/SUBSYS.o(.text+0x4317): In function `DoCopy':
: undefined reference to `errno'
commands/SUBSYS.o(.text+0x431d): In function `DoCopy':
: undefined reference to `errno'
collect2: ld returned 1 exit status
gmake[2]: *** [postgres] Fehler 1
gmake[2]: Leaving directory `/usr/local/pgsql/postgresql-7.2.4/src/backend'
gmake[1]: *** [all] Fehler 2
gmake[1]: Leaving directory `/usr/local/pgsql/postgresql-7.2.4/src'
gmake: *** [all] Fehler 2
[root@whisky postgresql-7.2.4]#

There were a lot of lines containing "...Wmissing..."

How can I proceed?

Thanks for help

Heiko

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #1
7 1682
Heiko Pohl <He********@VR-Web.de> writes:
upgrading my OS from RedHat 8.0 to FC2, postgresql was also
automatically updated from 7.2. to 7.4. Unfortunately, I did not
"dumpall"... How can I get my data??? I copied the data-folder to
another location and so got running the new postgresql-server. I tried
to install the old 7.2.4.tar.gz in a new folder, but it don't go further
than ./configure. gmake gives the following lines at the end: (second
time tiping gmake) commands/SUBSYS.o(.text+0x420a): In function `DoCopy':
: undefined reference to `errno'


You need to add "#include <errno.h>" near the top of
src/backend/commands/copy.c, as per this patch:

http://developer.postgresql.org/cvsw...1&r2=1.145.2.2

2003-04-11 16:51 tgl

* src/backend/commands/copy.c (REL7_2_STABLE): Add #include
<errno.h> per recent reports that it's now necessary on RHL 9.
(Not clear why it didn't break long before, actually...)

We never put out a 7.2.5, so the change didn't see the light of day
in that branch ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #2
Heiko Pohl <He********@VR-Web.de> writes:
upgrading my OS from RedHat 8.0 to FC2, postgresql was also
automatically updated from 7.2. to 7.4. Unfortunately, I did not
"dumpall"... How can I get my data??? I copied the data-folder to
another location and so got running the new postgresql-server. I tried
to install the old 7.2.4.tar.gz in a new folder, but it don't go further
than ./configure. gmake gives the following lines at the end: (second
time tiping gmake) commands/SUBSYS.o(.text+0x420a): In function `DoCopy':
: undefined reference to `errno'


You need to add "#include <errno.h>" near the top of
src/backend/commands/copy.c, as per this patch:

http://developer.postgresql.org/cvsw...1&r2=1.145.2.2

2003-04-11 16:51 tgl

* src/backend/commands/copy.c (REL7_2_STABLE): Add #include
<errno.h> per recent reports that it's now necessary on RHL 9.
(Not clear why it didn't break long before, actually...)

We never put out a 7.2.5, so the change didn't see the light of day
in that branch ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #3
Thank You, I installed now the 7.2.4-Version and it works. But how do I
reach my Data? My 7.2.-installation is now in /usr/local/pgsql/ , my
data - also 7.2 - are in /usr/lib/pgsql.old/data/ ...??

Tom Lane wrote:
Heiko Pohl <He********@VR-Web.de> writes:

upgrading my OS from RedHat 8.0 to FC2, postgresql was also
automatically updated from 7.2. to 7.4. Unfortunately, I did not
"dumpall"... How can I get my data??? I copied the data-folder to
another location and so got running the new postgresql-server. I tried
to install the old 7.2.4.tar.gz in a new folder, but it don't go further
than ./configure. gmake gives the following lines at the end: (second
time tiping gmake)

commands/SUBSYS.o(.text+0x420a): In function `DoCopy':
: undefined reference to `errno'


You need to add "#include <errno.h>" near the top of
src/backend/commands/copy.c, as per this patch:

http://developer.postgresql.org/cvsw...1&r2=1.145.2.2

2003-04-11 16:51 tgl

* src/backend/commands/copy.c (REL7_2_STABLE): Add #include
<errno.h> per recent reports that it's now necessary on RHL 9.
(Not clear why it didn't break long before, actually...)

We never put out a 7.2.5, so the change didn't see the light of day
in that branch ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #4
Heiko Pohl <He********@VR-Web.de> writes:
Thank You, I installed now the 7.2.4-Version and it works. But how do I
reach my Data? My 7.2.-installation is now in /usr/local/pgsql/ , my
data - also 7.2 - are in /usr/lib/pgsql.old/data/ ...??


Point the postmaster to that data directory with PGDATA or -D switch.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #5
Tom Lane wrote:
Heiko Pohl <He********@VR-Web.de> writes:

Thank You, I installed now the 7.2.4-Version and it works. But how do I
reach my Data? My 7.2.-installation is now in /usr/local/pgsql/ , my
data - also 7.2 - are in /usr/lib/pgsql.old/data/ ...??


Point the postmaster to that data directory with PGDATA or -D switch.

regards, tom lane

I tried the following:

-bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /var/lib/pgsql.old/data
FATAL 2: The database cluster was initialized with LC_COLLATE
'de_DE.UTF-8' and
LC_CTYPE 'de_DE.UTF-8', but the server was compiled without
locale support.
It looks like you need to initdb or recompile.
-bash-2.05b$

Then:

-bash-2.05b$ /usr/local/pgsql/bin/initdb -D /var/lib/pgsql.old/data/
The files belonging to this database system will be owned by user
"postgres".
This user must also own the server process.

initdb: The directory /var/lib/pgsql.old/data/ exists but is not empty.
If you want to create a new database system, either remove or empty
the directory /var/lib/pgsql.old/data/ or run initdb with
an argument other than /var/lib/pgsql.old/data/.
-bash-2.05b$

How can I recompile? Or is there another possibility?

Heiko

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #6
Heiko Pohl <He********@VR-Web.de> writes:
-bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /var/lib/pgsql.old/data
FATAL 2: The database cluster was initialized with LC_COLLATE
'de_DE.UTF-8' and
LC_CTYPE 'de_DE.UTF-8', but the server was compiled without
locale support.
It looks like you need to initdb or recompile.
You need configure --enable-locale, or some such switch.

-bash-2.05b$ /usr/local/pgsql/bin/initdb -D /var/lib/pgsql.old/data/


Do NOT NOT NOT initdb, or you'll have wasted this whole exercise.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #7


Tom Lane wrote:
Heiko Pohl <He********@VR-Web.de> writes:

-bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /var/lib/pgsql.old/data
FATAL 2: The database cluster was initialized with LC_COLLATE
'de_DE.UTF-8' and
LC_CTYPE 'de_DE.UTF-8', but the server was compiled without
locale support.
It looks like you need to initdb or recompile.


You need configure --enable-locale, or some such switch.

Got it!!! :-))))

I have my data now running on the 7.4-server and nothing is lost. Great!
Thank You very much!

Heiko Pohl

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vanchau Nguyen | last post by:
Hi all, Hoping someone can help us with this strange Innodb problem. At about 5:15 AM 2/2/04 (this morning), our slave server stopped accepting connections. The machine was pingable, but you...
3
by: Tony Johansson | last post by:
Hello Experts!! I have two small classes called Intvektor and Matris shown below and a main. Class Intvektor will create a one dimension array of integer by allocate memory dynamically as you...
2
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the...
14
by: Fredda | last post by:
Hello! I have problem with the following: >From the class 'Transaktion': ------------------------------------------------------------------------------------------------------ .. .. ..
7
by: B. Williams | last post by:
I wrote a program that would simply output data to the screen, but now I am trying to have the data saved to a file. I don't have a problem creating the file or even outputting data to it when there...
0
by: james.mcdonagh | last post by:
Hi I am a newbie using nAnt for .net 2.0. As such I have not come across this bug before, and I would be happy of any help that you may be able to provide. In order to help I have included the...
2
by: jiang.haiyun | last post by:
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple: ====================== %less qttest.py from PyQt4 import...
0
by: lumo2000 | last post by:
hello NG. i have to install a little python application and my problem is, that python does not find the proper include files, although they are, where the script searches for... any ideas how...
4
by: sa6113 | last post by:
I want to use sftp from paramiko to copy a file from a windows machine to a Linux in the network, I use this code : host = "LinuxComputerName" (or its Ip) port = 22 transport =...
4
pradeepjain
by: pradeepjain | last post by:
i had posted the same code in javascript area !! this i am posting bcos of different problem. as you can see in ma code there is a dropdown called sort ...its sorts the result by the value he...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.