472,353 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

pg_dump and pg_restore wtih lo

Sam
I'm having trouble restoring databases that have to lo type installed
in /contrib/lo.

The dump seems to work just fine, I get no errors when I execute the
following command

#pg_dump -Fc -o -b mydb > mydb_dump
CREATE DATABASE mydb_restore TEMPLATE template0


But when I execute the following command I get the following error
message:

#pg_restore -d mydb_restore -FC mydb_dump

pg_restore: NOTICE: type "lo" is not yet defined
DETAIL: Creating a shell type definition.
pg_restore: NOTICE: argument type lo is only a shell
pg_restore: [archiver (db)] could not execute query: ERROR: function
lo(oid) does not exist

Does anybody have an idea?
Jul 19 '05 #1
1 3617
In article <ff************************@posting.google.com>,
sa*@edup.tudelft.nl (Sam) wrote:
I'm having trouble restoring databases that have to lo type installed
in /contrib/lo.

The dump seems to work just fine, I get no errors when I execute the
following command

#pg_dump -Fc -o -b mydb > mydb_dump
CREATE DATABASE mydb_restore TEMPLATE template0


But when I execute the following command I get the following error
message:

#pg_restore -d mydb_restore -FC mydb_dump

pg_restore: NOTICE: type "lo" is not yet defined
DETAIL: Creating a shell type definition.
pg_restore: NOTICE: argument type lo is only a shell
pg_restore: [archiver (db)] could not execute query: ERROR: function
lo(oid) does not exist

Does anybody have an idea?


Quoting the manual (under 22.1.4 Caveats in 7.4 docs):

" For reasons of backward compatibility, pg_dump does not dump large
objects by default. To dump large objects you must use either the custom
or the TAR output format, and use the -b option in pg_dump. See the
reference pages for details. The directory contrib/pg_dumplo of the
PostgreSQL source tree also contains a program that can dump large
objects.

"Please familiarize yourself with the pg_dump reference page. "

Hope that helps.

Boyd

Jul 19 '05 #2

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

Similar topics

4
by: Mark Mikulec | last post by:
Hi there, I wonder if anyone can shed some light on a very frustrating problem. I'm running a debian linux 3.0 "woody" server, nothing special,...
7
by: Howard Lowndes | last post by:
My situation is that I am interacting PHP 4.1.2 to PostgreSQL 7.2.2 I have no difficulty inserting and managing BLOBs into the Large Object...
1
by: Ruth Hsieh | last post by:
The postgreSQL release used is 7.3.4. We would like to dump the objects for particular user. How? I used -U option, the result still dump all the...
0
by: Aienthiwan | last post by:
Hello all, I'm running a debian server and recently updated my version of PostgreSQL to "unstable", that being v7.4.1. I had no trouble at all...
6
by: Michal Hlavac | last post by:
Hellou, when I use pg_dump database > dump.dat on database with tsearch2 and then psql database < dump.dat - this command fails, because in...
6
by: Soeren Gerlach | last post by:
Hi, some weeks ago I started to develop an application using Postgresql the first time. I'm running 7.4.3 on a Linux box with a plain 2.6.7...
0
by: Otto Blomqvist | last post by:
Hello ! I was just wondering if anyone knows if this is a bug or whats up. Im using psql 7.2.2 I can do full restores and dumps all day...
1
by: Neil Zanella | last post by:
Hello, I have an SQL database which I create with: psql -f create.sql foodb I then access this database and perform several insertions,...
0
by: aktivo | last post by:
pg_dump remove name of schema from default value. i don't know why. how can i solve this problem ? For example: BEFORE PG_DUMP: CREATE TABLE...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.