Unix Technical Forum

Re: pg_restore problem

This is a discussion on Re: pg_restore problem within the pgsql Sql forums, part of the PostgreSQL category; --> I used pgadmin to save and mine would not restore saying something about the encoding. I will have to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:55 AM
Joel Fradkin
 
Posts: n/a
Default Re: pg_restore problem

I used pgadmin to save and mine would not restore saying something about the
encoding.

I will have to be able to save and restore reliably as well.



Also I never heard anything further on the query running slow (I put up
table defs and analyze with and without seq on).

I am running into this on several of my views (I guess I am not too bright,
because I still don't get why it chooses seq scan on indexed tables).

I can force it to use index and did see a little improvement, but the MSSQL
was 3 secs and Postgres was like 9.

Seeing as how I got the one viw to return faster (it was very complex view)
on postgres, my guess is I still have stuff to do. I did try changing the
cost to a lower number in config and redid my analyze, but it was still
trying to do a seq scan.



Joel Fradkin



Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305



jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.






-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailtogsql-sql-owner@postgresql.org]
On Behalf Of Bradley Miller
Sent: Wednesday, February 02, 2005 3:17 PM
To: Postgres List
Subject: [SQL] pg_restore problem



I'm attempting to restore a dump from one server to another (one is a Mac
and one is a Linux base, if that makes any difference). I keep running into
issues like this:

pg_restore: [archiver (db)] could not execute query: ERROR: function
public.random_page_link_id_gen() does not exist

This is what I'm using to restore the files with:

pg_restore -O -x -s -N -d nuvio mac_postgres_2_2_2005_13_24

Any suggestions on how to get around this problem? It's a huge pain so far
just to sync my two servers up.

Bradley Miller
NUVIO CORPORATION
Phone: 816-444-4422 ext. 6757
Fax: 913-498-1810
http://www.nuvio.com
bmiller@nuvio.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com