Re: [GENERAL] Error restoring bytea from dump

2004-10-27 Thread Együd Csaba (Freemail)
Hi again,

Another mistake of mine ... :) The real problem was that I used a Windows
based archiver (PowerArchiver) to unzip the gz file which - for some reasons
??? - chunked the long lines at aproximately every 16K. Using gunzip the
problem oozed away. :) 

Bye,
 -- Csaba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Fuhr
Sent: Tuesday, October 26, 2004 10:05 PM
To: Egy?d Csaba (Freemail)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [GENERAL] Error restoring bytea from dump

On Tue, Oct 26, 2004 at 08:51:31PM +0200, Együd Csaba wrote:
>
> the restoration of a dump stops at the line above.

What line above?  Are you referring to "Error restoring bytea" in the
subject header?  Is that the *exact* error message?

> The dump was created with pgsql 7.3.2 and I need to pump it into a 
> 7.4.3 one. Should anybody tell me what the problem can be and how I 
> can solve it.

Have extraneous newlines and/or carriage returns made it into the dump?
That might result in "invalid input syntax for type bytea", which isn't the
exact error you mentioned but might be what you meant.

> (There are double apostophes [''] many times in the string - is it
normal???
> Besides of the field separator [','] of course...)

http://www.postgresql.org/docs/7.4/static/sql-syntax.html#SQL-SYNTAX-STRINGS
http://www.postgresql.org/docs/7.4/static/datatype-binary.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

   http://archives.postgresql.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.
 


---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])


Re: [GENERAL] Error restoring bytea from dump

2004-10-26 Thread Együd Csaba (Freemail)
Hi Michael,
I've got it now. The problem was that PgAdminIII doesn't handle well the
escaped characters; and perhaps the long lines makes it unsure.

Trying to restore from the terminal window it works well. 

Thank you for your answer, it turned me to the right direction (new lines).

Bye,
-- Csaba Együd

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Fuhr
Sent: Tuesday, October 26, 2004 10:05 PM
To: Egy?d Csaba (Freemail)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [GENERAL] Error restoring bytea from dump

On Tue, Oct 26, 2004 at 08:51:31PM +0200, Együd Csaba wrote:
>
> the restoration of a dump stops at the line above.

What line above?  Are you referring to "Error restoring bytea" in the
subject header?  Is that the *exact* error message?

> The dump was created with pgsql 7.3.2 and I need to pump it into a 
> 7.4.3 one. Should anybody tell me what the problem can be and how I 
> can solve it.

Have extraneous newlines and/or carriage returns made it into the dump?
That might result in "invalid input syntax for type bytea", which isn't the
exact error you mentioned but might be what you meant.

> (There are double apostophes [''] many times in the string - is it
normal???
> Besides of the field separator [','] of course...)

http://www.postgresql.org/docs/7.4/static/sql-syntax.html#SQL-SYNTAX-STRINGS
http://www.postgresql.org/docs/7.4/static/datatype-binary.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

   http://archives.postgresql.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.
 


---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])


Re: [GENERAL] Error restoring bytea from dump

2004-10-26 Thread Michael Fuhr
On Tue, Oct 26, 2004 at 08:51:31PM +0200, Együd Csaba wrote:
>
> the restoration of a dump stops at the line above.

What line above?  Are you referring to "Error restoring bytea" in
the subject header?  Is that the *exact* error message?

> The dump was created with pgsql 7.3.2 and I need to pump it into
> a 7.4.3 one. Should anybody tell me what the problem can be and how
> I can solve it.

Have extraneous newlines and/or carriage returns made it into the
dump?  That might result in "invalid input syntax for type bytea",
which isn't the exact error you mentioned but might be what you
meant.

> (There are double apostophes [''] many times in the string - is it normal???
> Besides of the field separator [','] of course...)

http://www.postgresql.org/docs/7.4/static/sql-syntax.html#SQL-SYNTAX-STRINGS
http://www.postgresql.org/docs/7.4/static/datatype-binary.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

   http://archives.postgresql.org


Re: [GENERAL] Error restoring bytea from dump

2004-10-26 Thread Együd Csaba (Freemail)
 Hi there,
isn't there any idea? :((( 

-- Csaba Együd

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Együd Csaba
Sent: Monday, October 25, 2004 10:44 PM
To: '[EMAIL PROTECTED]'
Subject: [GENERAL] Error restoring bytea from dump

Hi,
the restoration of a dump stops at the line above. The dump was created with
pgsql 7.3.2 and I need to pump it into a 7.4.3 one. Should anybody tell me
what the problem can be and how I can solve it. 

(There are double apostophes [''] many times in the string - is it normal???
Besides of the field separator [','] of course...)

Many thanks,
  Csaba Együd

The line:


INSERT INTO proj_profiles (id, artnum, name, toolcode, drawing, thumbnail,
description) VALUES (1, '3600020', 'PROF', '17322',
'x\\332\\315Xy<\\224\\353\\333\\177&\\313X\\233\\224%Y&Q\\234&I\\210,\\015uD
\\251\\204Jd9\\245,\\211B\\266\\310#\\023\\312\\276\\204PT\\322f-\\373\\222\
\311\\026*\\215\\245L\\211\\354)\\373n0\\363<\\357=N\\277sp\\316\\373\\371\\
235\\367\\375\\275\\177\\274\\317|\\356?\\356g\\236\\271\\346\\272\\276\\327
u}\\257\\357\\375\\240\\237\\320Nh\\315\\301\\375\\007\\366C\\030\\014\\004a
[EMAIL PROTECTED]
\\016vv,;\\033\\007\\026\\213\\345\\344\\344\\340\\342\\341\\347\\345\\341\\
346\\346\\021^\\273\\016\\307/\\266\\001/.\\266ATt\\243\\324v\\351\\215\\233
\\266I\\212\\212\\312(\\377\\262m\\207\\274\\242\\242"^z\\267\\206\\312N\\36
5\\355\\012\\212;\\231F0\\234\\234\\234<\\334<\\353yy\\327\\357\\224\\020\\2
25\\330\\371?\\276\\320W\\020\\037\\007\\306\\012J`\\301l\\202V\\361aX\\3700
h\\025\\204\\007~\\262a\\026/\\350\\347\\205Y\\305\\302\\312\\306\\216\\345\
\340\\344\\342\\006\\017\\344\\255\\201VaXXV\\261\\262\\260\\261\\261\\262\\
202o\\257\\202\\357!V>\\266\\265\\022\\362Z\\354\\353\\014Nc79\\361\\357\\27
4\\026y\\237Cr\\357\\363r\\001\\303\\3061)\\2053\\316~\\234\\202B\\353\\
2057l\\336"-\\363\\313VE\\245]\\312*\\273U\\367\\375\\252\\275_G\\367\\300A\
\243c\\307O\\030\\23741\\265:{\\316\\332\\306\\326\\356\\274\\313eW7w\\017\\
317+\\244\\353\\376\\001\\2017n\\006EE\\337\\212\\211\\215\\273\\035\\23
317+7\\3
60
\\345a\\352\\243\\307O\\236>{\\221\\223\\233\\227_PXTQYU\\375\\272\\246\
\266\\356MS\\363\\207\\217-\\324O\\237[\\273\\272{z\\373\\276\\365\\177\\377
10>195=3K\\233\\233g\\306\\205\\201X0\\377\\272\\3766.>\\020\\327*VV\\02
10>6V,3
.\\314*w\\346\\003|\\254l\\022\\362\\354k\\265\\014\\260\\247\\235\\326m\\33
2y\\215\\203\\177o\\344\\375\\347\\345\\234\\222\\012\\206c\\002g\\234\\033\
\271\\004\\245\\024\\2736\\2173C[\\214\\354\\237\\005\\346\\367\\277\\212\\3
54\\217\\300\\376\\214\\253\\025\\342a\\301\\200\\344\\261\\360AD\\350e7\\22
1\\317\\204f\\245\\03763\\363Koh\\037\\037\\206\\313\\317YK\\243\\266\\247O\
[EMAIL PROTECTED]/\\223\
\205\\340^\\243<\\024\\312\\352E\\241\\006\\251,\\241,+\\241\\220\\264\\203Y
\\333\\334\\324\\315\\304\\271bL\\315\\232\\333f`\\332\\251\\004,}n\\300rv\\
200\\210l\\017_\\266+=\\023\\324\\2074f\\365\\272\\302\\326\\015C\\310\\344g
\\024\\352r\\264\\305O\\366?\\205;\\236\\240\\020\\255\\230\\270|;\\036$\\30
3|\\032\\3779W\\215X\\372o\\014\\027\\353\\263\\350+e\\335\\224*,\\210\\
3|325\
\265\\011>\\364A|\\267\\344\\231\\364\\220m\\3376\\372\\355f\\025w\\321\\231
\\011\\2057"\\365\\367?3\\372\\357\\243\\320\\212\\240V\\004\\351\\372\\306C
\\247Z\\202\\252\\256-\\036\\372\\204\\226h\\030\\313{\\344\\353\\267j\\
303\\221\\011\\273Mv\\326\\327zn\\354\\244\\267y\\206\\335\\351\\354\\311:\\
[EMAIL PROTECTED]''\\
233\\253\\207\\242O\\275\\033\\347\\264\\236<\\264-\\336\\020\\303\\025Q\\34
5T\\307\\276\\177w%D\\030l\\315OM\\247\\011\\375Z\\370Q\\211\\273\\344\\007\
\325\\250L;j\\300:\\306o\\356D
\\364ZX\\252\\247\\255\\221\\221bYK\\314\\261u\\203=\\333\\377m(=\\374\\
006\\177>>\\204Bc\\005\\212\\270\\271\\311\\017\\344\\321\\0170\\335\\034\\2
77l\\347Q\\315\\017\\333R''pC\\255b\\311_\\275\\210t\\331z\\026\\304{Zna\\03
2\\217BB:\\313\\267\\026\\362\\332\\370V%:iaW\\240\\315l\\022\\243\\213"\\37
2#I\\372\\203\\324\\213\\027~#\\273\\327J\\376\\242\\260\\351\\232\\257\\346
PM\\362mc\\375\\240\\361\\360\\353\\226\\023\\273\\314aj0\\012}w\\242\\346v\
\2774\\333lw\\374q\\275,ERx\\277\\342\\263\\211J\\253k\\264Rbw\\364\\317\\24
2jt6\\0166\\316\\363\\266D\\241\\310#T\\204\\034\\215B\\332u\\026\\004\\213#
\\247\\351V\\237\\336\\222\\257Mr\\311<(\\014\\033{\\020$\\003e\\222\\312\\3
11\\023\\242E(\\224}"\\025\\205\\036\\032\\031\\023\\315\\261$\\270w\\267\\0
13\\012\\375\\226\\241\\207B\\272\\217\\356q\\343W\\253w\\320L,D''\\274C;Z\\
327\\364S>\\0278v\\225\\210\\320\\332C\\206k\\352KD|.\\030\\313\\231\\353T\\
336\\360F\\241\\233\\026\\242\\3729\\372N\\241{\\205>c*y\\323E\\234:\\351i\\
[EMAIL PROTECTED]\\012\\303/O\\216\\2
61)\\301W\\212\\346-q\\361\\306W\\221uu\\233\\244g\\356\

[GENERAL] Error restoring bytea from dump

2004-10-25 Thread Együd Csaba
Hi,
the restoration of a dump stops at the line above. The dump was created with
pgsql 7.3.2 and I need to pump it into a 7.4.3 one. Should anybody tell me
what the problem can be and how I can solve it. 

(There are double apostophes [''] many times in the string - is it normal???
Besides of the field separator [','] of course...)

Many thanks,
  Csaba Együd

The line:


INSERT INTO proj_profiles (id, artnum, name, toolcode, drawing, thumbnail,
description) VALUES (1, '3600020', 'PROF', '17322',
'x\\332\\315Xy<\\224\\353\\333\\177&\\313X\\233\\224%Y&Q\\234&I\\210,\\015uD
\\251\\204Jd9\\245,\\211B\\266\\310#\\023\\312\\276\\204PT\\322f-\\373\\222\
\311\\026*\\215\\245L\\211\\354)\\373n0\\363<\\357=N\\277sp\\316\\373\\371\\
235\\367\\375\\275\\177\\274\\317|\\356?\\356g\\236\\271\\346\\272\\276\\327
u}\\257\\357\\375\\240\\237\\320Nh\\315\\301\\375\\007\\366C\\030\\014\\004a
[EMAIL PROTECTED]
\\016vv,;\\033\\007\\026\\213\\345\\344\\344\\340\\342\\341\\347\\345\\341\\
346\\346\\021^\\273\\016\\307/\\266\\001/.\\266ATt\\243\\324v\\351\\215\\233
\\266I\\212\\212\\312(\\377\\262m\\207\\274\\242\\242"^z\\267\\206\\312N\\36
5\\355\\012\\212;\\231F0\\234\\234\\234<\\334<\\353yy\\327\\357\\224\\020\\2
25\\330\\371?\\276\\320W\\020\\037\\007\\306\\012J`\\301l\\202V\\361aX\\3700
h\\025\\204\\007~\\262a\\026/\\350\\347\\205Y\\305\\302\\312\\306\\216\\345\
\340\\344\\342\\006\\017\\344\\255\\201VaXXV\\261\\262\\260\\261\\261\\262\\
202o\\257\\202\\357!V>\\266\\265\\022\\362Z\\354\\353\\014Nc79\\361\\357\\27
4\\026y\\237Cr\\357\\363r\\001\\303\\3061)\\2053\\316~\\234\\202B\\353\\
2057l\\336"-\\363\\313VE\\245]\\312*\\273U\\367\\375\\252\\275_G\\367\\300A\
\243c\\307O\\030\\23741\\265:{\\316\\332\\306\\326\\356\\274\\313eW7w\\017\\
317+\\244\\353\\376\\001\\2017n\\006EE\\337\\212\\211\\215\\273\\035\\237\\3
60
\\345a\\352\\243\\307O\\236>{\\221\\223\\233\\227_PXTQYU\\375\\272\\246\
\266\\356MS\\363\\207\\217-\\324O\\237[\\273\\272{z\\373\\276\\365\\177\\377
10>195=3K\\233\\233g\\306\\205\\201X0\\377\\272\\3766.>\\020\\327*VV\\026V,3
.\\314*w\\346\\003|\\254l\\022\\362\\354k\\265\\014\\260\\247\\235\\326m\\33
2y\\215\\203\\177o\\344\\375\\347\\345\\234\\222\\012\\206c\\002g\\234\\033\
\271\\004\\245\\024\\2736\\2173C[\\214\\354\\237\\005\\346\\367\\277\\212\\3
54\\217\\300\\376\\214\\253\\025\\342a\\301\\200\\344\\261\\360AD\\350e7\\22
1\\317\\204f\\245\\03763\\363Koh\\037\\037\\206\\313\\317YK\\243\\266\\247O\
[EMAIL PROTECTED]/\\223\
\205\\340^\\243<\\024\\312\\352E\\241\\006\\251,\\241,+\\241\\220\\264\\203Y
\\333\\334\\324\\315\\304\\271bL\\315\\232\\333f`\\332\\251\\004,}n\\300rv\\
200\\210l\\017_\\266+=\\023\\324\\2074f\\365\\272\\302\\326\\015C\\310\\344g
\\024\\352r\\264\\305O\\366?\\205;\\236\\240\\020\\255\\230\\270|;\\036$\\30
3|\\032\\3779W\\215X\\372o\\014\\027\\353\\263\\350+e\\335\\224*,\\210\\325\
\265\\011>\\364A|\\267\\344\\231\\364\\220m\\3376\\372\\355f\\025w\\321\\231
\\011\\2057"\\365\\367?3\\372\\357\\243\\320\\212\\240V\\004\\351\\372\\306C
\\247Z\\202\\252\\256-\\036\\372\\204\\226h\\030\\313{\\344\\353\\267j\\
303\\221\\011\\273Mv\\326\\327zn\\354\\244\\267y\\206\\335\\351\\354\\311:\\
[EMAIL PROTECTED]''\\
233\\253\\207\\242O\\275\\033\\347\\264\\236<\\264-\\336\\020\\303\\025Q\\34
5T\\307\\276\\177w%D\\030l\\315OM\\247\\011\\375Z\\370Q\\211\\273\\344\\007\
\325\\250L;j\\300:\\306o\\356D
\\364ZX\\252\\247\\255\\221\\221bYK\\314\\261u\\203=\\333\\377m(=\\374\\
006\\177>>\\204Bc\\005\\212\\270\\271\\311\\017\\344\\321\\0170\\335\\034\\2
77l\\347Q\\315\\017\\333R''pC\\255b\\311_\\275\\210t\\331z\\026\\304{Zna\\03
2\\217BB:\\313\\267\\026\\362\\332\\370V%:iaW\\240\\315l\\022\\243\\213"\\37
2#I\\372\\203\\324\\213\\027~#\\273\\327J\\376\\242\\260\\351\\232\\257\\346
PM\\362mc\\375\\240\\361\\360\\353\\226\\023\\273\\314aj0\\012}w\\242\\346v\
\2774\\333lw\\374q\\275,ERx\\277\\342\\263\\211J\\253k\\264Rbw\\364\\317\\24
2jt6\\0166\\316\\363\\266D\\241\\310#T\\204\\034\\215B\\332u\\026\\004\\213#
\\247\\351V\\237\\336\\222\\257Mr\\311<(\\014\\033{\\020$\\003e\\222\\312\\3
11\\023\\242E(\\224}"\\025\\205\\036\\032\\031\\023\\315\\261$\\270w\\267\\0
13\\012\\375\\226\\241\\207B\\272\\217\\356q\\343W\\253w\\320L,D''\\274C;Z\\
327\\364S>\\0278v\\225\\210\\320\\332C\\206k\\352KD|.\\030\\313\\231\\353T\\
336\\360F\\241\\233\\026\\242\\3729\\372N\\241{\\205>c*y\\323E\\234:\\351i\\
[EMAIL PROTECTED]\\012\\303/O\\216\\2
61)\\301W\\212\\346-q\\361\\306W\\221uu\\233\\244g\\356\\026\\261\\255\\221o
\\377\\306\\233\\302\\032\\306\\375\\333\\272Ok/9\\221\\352\\251\\006c]_\\21
1\\000;\\371\\257W#\\303\\356s\\354<\\027\\320yrU\\262\\214t?\\353\\343\\307
\\365u,[EMAIL PROTECTED];\\333\\346\\304\\365g\\27
4\\027\\334\\206&\\225\\257fz\\217\\324P\\012D\\234\\222\\343\\324\\362''\\2
13\\323\\276\\302u\\352\\215\\344!\\002\\014\\274\\317\\330ZsS\\342K\\027\\2
21\\2352cG\\365IV\\365\\034\\202\\335h%w\\206\\015\\302KK^x\\252\\253\\216\\
251&\\314&O\\350+^