Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-12 Thread Eric Svenson
Hi Adrian, so finally I have a workaround which is ok for me. When I seperate the tables and the data (using the -a and -s switch from pg_dump) into 2 sql backup files, everything works ok on the problem-VM. I try to investigate further in the coming weeks, I´m on holiday next week. Regards and

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-10 Thread Eric Svenson
> The restore left you with two empty tables. What happens if you log into Postgres > via psql and then INSERT one set of values containing floats into say, >dev_my_settings? SUCCESS! This works OK! INSERT INTO dev_my_settings(123, 'test', 'test', 'test', 123, 123.345); Value 123.345 can be read

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-10 Thread Eric Svenson
So, one more success... I have taken a part of the backup SQL file which fills the table COPY dev_my_settings (.) from stdin; 12345 text text 0 123.345345 This file ALONE works! (without changing ANYTHING!) So if I run the first (huge) SQL file and then the second, which fills the de

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-10 Thread Adrian Klaver
On 12/10/2014 01:32 AM, Eric Svenson wrote: So, one more success... I have taken a part of the backup SQL file which fills the table COPY dev_my_settings (.) from stdin; 12345 text text 0 123.345345 This file ALONE works! (without changing ANYTHING!) Hmm, almost like the encoding/

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-09 Thread Eric Svenson
Hi Adrian, here are the results of today: > How where the Postgres instances installed? > From a package? Yes. It is Version 9.2 for Windows, comment of the package is "The PostgreSQL RDBMS, version 9.2, packaged by EnterpriseDB" > Compiled and if so with what compiler and what settings? No

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-09 Thread Eric Svenson
Hi Adrian, I try to get access to the non-VM machine, at the moment access is not possible for me unfortunately. You are right, there are more tables in the database which are restored correctly but these tables do NOT contain float values. These two tables are the only tables in the database whi

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-08 Thread Adrian Klaver
On 12/08/2014 06:53 AM, Eric Svenson wrote: Hi Adrian, I try to get access to the non-VM machine, at the moment access is not possible for me unfortunately. You are right, there are more tables in the database which are restored correctly but these tables do NOT contain float values. These two

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-08 Thread Adrian Klaver
On 12/08/2014 06:53 AM, Eric Svenson wrote: Hi Adrian, I try to get access to the non-VM machine, at the moment access is not possible for me unfortunately. You are right, there are more tables in the database which are restored correctly but these tables do NOT contain float values. These two

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-08 Thread Adrian Klaver
On 12/08/2014 12:21 AM, Eric Svenson wrote: Hi Adrian, here are the results of today: > How where the Postgres instances installed? > From a package? Yes. It is Version 9.2 for Windows, comment of the package is "The PostgreSQL RDBMS, version 9.2, packaged by EnterpriseDB" > Compiled a

Re: Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-05 Thread Adrian Klaver
On 12/05/2014 01:13 AM, Eric Svenson wrote: Hi Adrian, Is the above how the message was actually presented or has a partialtranslation taken >place? Just asking because it would seem to indicate further confusion about the locale. This is an exact copy of the screen contents, no translatio

Fwd: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-05 Thread Eric Svenson
Hi Adrian, >Is the above how the message was actually presented or has a partial translation taken >place? Just asking because it would seem to indicate further confusion about the locale. This is an exact copy of the screen contents, no translation by me has taken place. Indeed strange, "ERROR"

Re: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-04 Thread Adrian Klaver
On 12/04/2014 02:01 AM, Eric Svenson wrote: So what if you load to the VM Postgres using the psql from the host? I tried that: On the host I started psql with psql -h 192.168.2.55 -U postgres -p 5432 my_Database < myFile.sql I get the same error ERROR: invalid input syntax for type double pre

Re: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-04 Thread Eric Svenson
> So what if you load to the VM Postgres using the psql from the host? I tried that: On the host I started psql with psql -h 192.168.2.55 -U postgres -p 5432 my_Database < myFile.sql I get the same error ERROR: invalid input syntax for type double precision "0.2" KONTEXT: COPY dev_my_settings, l

Re: Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-03 Thread Adrian Klaver
On 12/03/2014 12:23 AM, Eric Svenson wrote: Hi Adrian, thank you for your support. Here are the informations you requested I have already done that and found something strange: On the PC where the backup was done with pg_dump, all locale settings of Postgres were English/United S

Fwd: [GENERAL] Problem with pg_dump and decimal mark

2014-12-03 Thread Eric Svenson
Hi Adrian, thank you for your support. Here are the informations you requested > I have already done that and found something strange: > > On the PC where the backup was done with pg_dump, all locale settings of > Postgres were English/United States. (LC_COLLATE, LC_CTYPE, LC_MONETARY, > LC_NUME

Re: [GENERAL] Problem with pg_dump and decimal mark

2014-12-02 Thread Adrian Klaver
On 11/29/2014 12:25 AM, Eric Svenson wrote: Seems you have a locale mismatch issue. The dump is coming from a locale where a '.' is the decimal mark and is being restored to a locale where ',' is the mark. Look at what the locales are

Re: [GENERAL] Problem with pg_dump and decimal mark

2014-12-02 Thread Eric Svenson
Seems you have a locale mismatch issue. The dump is coming from a locale >>> where a '.' is the decimal mark and is being restored to a locale where >>> ',' is the mark. Look at what the locales are the machines that work and >>> the one that does not. >>> >> >> I have already done that and found s

Re: [GENERAL] Problem with pg_dump and decimal mark

2014-11-28 Thread Adrian Klaver
On 11/28/2014 02:08 PM, Tom Lane wrote: Adrian Klaver writes: On 11/28/2014 05:35 AM, Eric Svenson wrote: I have done a backup of a postgres database on a virtual machine (Windows 8.1) using pg_dump. On another (non-virtual) machine the restore (with psql) worked without problems. On the thi

Re: [GENERAL] Problem with pg_dump and decimal mark

2014-11-28 Thread Tom Lane
Adrian Klaver writes: > On 11/28/2014 05:35 AM, Eric Svenson wrote: >> I have done a backup of a postgres database on a virtual machine >> (Windows 8.1) using pg_dump. >> >> On another (non-virtual) machine the restore (with psql) worked without >> problems. >> >> On the third virtual machine, h

Re: [GENERAL] Problem with pg_dump and decimal mark

2014-11-28 Thread Adrian Klaver
On 11/28/2014 05:35 AM, Eric Svenson wrote: Hello, I have done a backup of a postgres database on a virtual machine (Windows 8.1) using pg_dump. On another (non-virtual) machine the restore (with psql) worked without problems. On the third virtual machine, however, the restore fails. (ERROR:

[GENERAL] Problem with pg_dump and decimal mark

2014-11-28 Thread Eric Svenson
Hello, I have done a backup of a postgres database on a virtual machine (Windows 8.1) using pg_dump. On another (non-virtual) machine the restore (with psql) worked without problems. On the third virtual machine, however, the restore fails. (ERROR: invalid input syntax for type double precision

Re: [GENERAL] Problem with pg_dump?

2008-01-04 Thread Ken Winter
nal Message- > From: [EMAIL PROTECTED] [mailto:pgsql-general- > [EMAIL PROTECTED] On Behalf Of Tom Lane > Sent: Friday, January 04, 2008 3:35 PM > To: Ken Winter > Cc: PostgreSQL pg-general List > Subject: Re: [GENERAL] Problem with pg_dump? > > "Ken Winter" <[E

Re: [GENERAL] Problem with pg_dump?

2008-01-04 Thread Tom Lane
"Ken Winter" <[EMAIL PROTECTED]> writes: > When I do a pg_dump from an 8.1 database (with options schema-only, > no-owner, and plain format), the dump file includes the following: > ALTER SEQUENCE transaction_transaction_id_seq OWNED BY > "transaction".transaction_id; Don't use 8.2 pg_dump if you

[GENERAL] Problem with pg_dump?

2008-01-04 Thread Ken Winter
When I do a pg_dump from an 8.1 database (with options schema-only, no-owner, and plain format), the dump file includes the following: " -- -- TOC entry 1623 (class 1259 OID 17618) -- Dependencies: 5 1624 -- Name: transaction_transaction_id_seq; Type: SEQUENCE; Schema: public; -- Owner: - -- CRE

[GENERAL] Problem with pg_dump.

2007-05-28 Thread Piotr Konieczny
Hi! I've got problem with dumping the database on the slave server. Situation: Master: Running CentOS release 4.4 (Final) with PostgreSQL 8.2.4. Slave: Running CentOS release 4.3 (Final) with PostgreSQL 8.2.4 and slon version 1.2.9 pg_dump on master works fine. On slave i've got error on st

Re: [GENERAL] Problem with pg_dump

2007-05-22 Thread Richard Huxton
Andrew Sullivan wrote: On Tue, May 22, 2007 at 04:36:49PM +0200, [EMAIL PROTECTED] wrote: pg_dump on master works fine. On slave i've got error on start of dumping: -bash-3.00$ pg_dump -d -D my_database pg_dump: failed sanity check, parent table OID 225893092 of pg_rewrite entry OID 225893271

Re: [GENERAL] Problem with pg_dump

2007-05-22 Thread Joshua D. Drake
Andrew Sullivan wrote: On Tue, May 22, 2007 at 04:36:49PM +0200, [EMAIL PROTECTED] wrote: pg_dump on master works fine. On slave i've got error on start of dumping: -bash-3.00$ pg_dump -d -D my_database pg_dump: failed sanity check, parent table OID 225893092 of pg_rewrite entry OID 225893271

Re: [GENERAL] Problem with pg_dump

2007-05-22 Thread Andrew Sullivan
On Tue, May 22, 2007 at 04:36:49PM +0200, [EMAIL PROTECTED] wrote: > pg_dump on master works fine. On slave i've got error on start of > dumping: > > -bash-3.00$ pg_dump -d -D my_database > pg_dump: failed sanity check, parent table OID 225893092 of > pg_rewrite entry OID 225893271 not found Yo

Re: [GENERAL] Problem with pg_dump

2007-05-22 Thread Richard Huxton
[EMAIL PROTECTED] wrote: Hi! I've got problem with dumping the database on the slave server. Situation: Master: Running CentOS release 4.4 (Final) with PostgreSQL 8.2.4. Slave: Running CentOS release 4.3 (Final) with PostgreSQL 8.2.4 and slon version 1.2.9 pg_dump on master works fine. On

[GENERAL] Problem with pg_dump

2007-05-22 Thread znahor-news
Hi! I've got problem with dumping the database on the slave server. Situation: Master: Running CentOS release 4.4 (Final) with PostgreSQL 8.2.4. Slave: Running CentOS release 4.3 (Final) with PostgreSQL 8.2.4 and slon version 1.2.9 pg_dump on master works fine. On slave i've got error on st

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Alex Turner
Ok - it is user error, my bad.  It looks like something bad happened during the restore, and indexes didn't get created.  I forgot that pg_dump creates indexes as upper case CREATE INDEX, and I was grepping for 'index', not 'INDEX'. sorry for the confusion, to be honest I panicked when the thought

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Alan Hodgson
On Friday 10 November 2006 08:37, "Alex Turner" <[EMAIL PROTECTED]> wrote: > Sure thing, I hope it's as simple as user error! > > #!/bin/sh > export DATE=`date +%Y%m%d` > > /usr/local/pgsql/bin/pg_dump -Upostgres -hlocalhost trend > > /backup/trend.dump.$DATE > > Thats pretty much it repeated for e

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Andreas Kretschmer
Alex Turner <[EMAIL PROTECTED]> schrieb: > Sure thing, I hope it's as simple as user error! > > #!/bin/sh > export DATE=`date +%Y%m%d` > > /usr/local/pgsql/bin/pg_dump -Upostgres -hlocalhost trend > /backup/ > trend.dump.$DATE > > Thats pretty much it repeated for each database. I just upgrade

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Alex Turner
I would be happy to point someone to the dump file, it's about 500Meg thoughAlexOn 11/10/06, Alex Turner < [EMAIL PROTECTED]> wrote:Sure thing, I hope it's as simple as user error! #!/bin/shexport DATE=`date +%Y%m%d`/usr/local/pgsql/bin/pg_dump -Upostgres -hlocalhost trend > /backup/trend.dump.$DAT

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Alex Turner
Sure thing, I hope it's as simple as user error!#!/bin/shexport DATE=`date +%Y%m%d`/usr/local/pgsql/bin/pg_dump -Upostgres -hlocalhost trend > /backup/trend.dump.$DATEThats pretty much it repeated for each database.  I just upgraded to 8.1.5 to see if that would fix the problem, but it didn'tAlexO

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Joshua D. Drake
On Fri, 2006-11-10 at 11:23 -0500, Tom Lane wrote: > "Alex Turner" <[EMAIL PROTECTED]> writes: > > Well yes - thats what I mean, the definition for the index. It's not > > dumping the index defs. It also looks like it's not dumping roles fully > > either. I was missing grants from the dump too.

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Tom Lane
"Alex Turner" <[EMAIL PROTECTED]> writes: > Well yes - thats what I mean, the definition for the index. It's not > dumping the index defs. It also looks like it's not dumping roles fully > either. I was missing grants from the dump too. [ raised eyebrow... ] Let's see a test case.

Re: [GENERAL] Problem with pg_dump

2006-11-10 Thread Alex Turner
Well yes - thats what I mean, the definition for the index.  It's not dumping the index defs.  It also looks like it's not dumping roles fully either.  I was missing grants from the dump too.Alex On 11/9/06, Brent Wood <[EMAIL PROTECTED]> wrote: A. Kretschmer wrote:> am  Thu, dem 09.11.2006, um 13:

Re: [GENERAL] Problem with pg_dump

2006-11-09 Thread Brent Wood
A. Kretschmer wrote: am Thu, dem 09.11.2006, um 13:04:31 -0500 mailte Alex Turner folgendes: I seem to be having a problem with pg_dump in 8.1.2, it's not dumping indexes at all. Is this a known problem, should I just do an upgrade? I can't see a necessity to dump a index. But, i hop

Re: [GENERAL] Problem with pg_dump

2006-11-09 Thread A. Kretschmer
am Thu, dem 09.11.2006, um 13:04:31 -0500 mailte Alex Turner folgendes: > I seem to be having a problem with pg_dump in 8.1.2, it's not dumping indexes > at all. Is this a known problem, should I just do an upgrade? I can't see a necessity to dump a index. But, i hope, and i'm sure, pg_dump dump

[GENERAL] Problem with pg_dump

2006-11-09 Thread Alex Turner
I seem to be having a problem with pg_dump in 8.1.2, it's not dumping indexes at all.  Is this a known problem, should I just do an upgrade?Thanks,Alex TurnerMint Pixels

Re: [GENERAL] Problem with pg_dump - reg.

2004-04-08 Thread Tom Lane
Shanmugasundaram Doraisamy <[EMAIL PROTECTED]> writes: > Thanks for all your support to my previous > postings. I am currently using Postgresql 7.3.4-2PGDG. The problem I > am facing is that when I take a dump of the DB using pg_dump and restore > it using the cat pg_dump_

[GENERAL] Problem with pg_dump - reg.

2004-04-07 Thread Shanmugasundaram Doraisamy
Dear Group, Thanks for all your support to my previous postings. I am currently using Postgresql 7.3.4-2PGDG. The problem I am facing is that when I take a dump of the DB using pg_dump and restore it using the cat pg_dump_file |psql dbname, I find that some views and funct