Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D708F65030E for ; Thu, 28 Aug 2008 21:40:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 76476-03-7 for ; Thu, 28 Aug 2008 21:40:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by postgresql.org (Postfix) with ESMTP id 30F47650365 for ; Thu, 28 Aug 2008 21:26:46 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so823686rvf.43 for ; Thu, 28 Aug 2008 17:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=f725dlXAW+MBhrkNapKbxO237y4JsmKAfm1O4xtQJvY=; b=Yw/BBPzd2DCzSopIuZ3UtaHCK66TSBORiLO2uHmmyTCe0uWMyxHb5XeFSMGAuQ/rug h4Fy+tmPtPIalsi95qk0FM1q2yzkIC5hNj4AGHA0h8KHvOvI/h+/64CHfCDpIc9BErd7 2U/5An03/wFWk43o+VovZ1jU11U0/chus8HS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=wlX+ErmSWJNJkB/p62NZj2MZzSsStyvv9F39nIRbBInmsrmQkzvWJqXFDX/efXvBBo ynJYQrdG0cD2MzJv0XZR/ESDqjRtbqD8JN/GP9UfZLuo+9qcilKMsL3+LavqHH8UPQZo OtS7hgSkyKtBvTfDtX8onH/ZTqi/Z4DVnLaDA= Received: by 10.114.205.1 with SMTP id c1mr2147354wag.56.1219969604875; Thu, 28 Aug 2008 17:26:44 -0700 (PDT) Received: by 10.114.12.4 with HTTP; Thu, 28 Aug 2008 17:26:44 -0700 (PDT) Message-ID: Date: Fri, 29 Aug 2008 10:26:44 +1000 From: "Daniel Punton" To: pgsql-admin@postgresql.org Subject: psql data restore not working MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14892_21391696.1219969604837" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200808/228 X-Sequence-Number: 30073 ------=_Part_14892_21391696.1219969604837 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would be glad on advice what might be the issue (or how I could narrow it down) with the non restoration of data from a postgres 7.1 database to a postgres 8 database. The schema was dumped with pg_dump -O -s databasename > database_schema_file_name The data was dumped with pg_dump -O -a databasename > database_data_file_name the datafile was gzipped and transferred to another server and gunzipped the database was successfully created the schema was successfully generated psql -d databasename -f database_schema_file_name the datafile was cleaned for the carriage return/line feed issue (between pgsql 7-> 8) sed 's/^M/\\r/' datafilename > datafilename I attempted to insert the data psql -d databasename -f database_data_file_name no errors but when I query the data - there is none .. Any ideas what I might be missing or how to see any errors or warnings? Cheers Daniel Punton Senior Analyst/Programmer Transact/EForms Team CSC ------=_Part_14892_21391696.1219969604837 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I would be glad on advice what might be the issue (or how I could narrow it down)
with the non restoration of data from a postgres  7.1 database to a postgres 8 database.

The schema was dumped with
pg_dump -O -s databasename > database_schema_file_name
The data was dumped with
pg_dump -O -a databasename > database_data_file_name

the datafile was gzipped and transferred to another server
and gunzipped

the database was successfully created
the schema was successfully generated
psql -d databasename -f database_schema_file_name
the datafile was cleaned for the carriage return/line feed issue (between pgsql 7-> 8)
sed 's/^M/\\r/' datafilename > datafilename
I attempted to insert the data
psql -d databasename -f database_data_file_name
no errors but when I query the data - there is none ..

Any ideas what I might be missing or how to see any errors or warnings?

Cheers
Daniel Punton
Senior Analyst/Programmer
Transact/EForms Team CSC

------=_Part_14892_21391696.1219969604837--