Re: COPY error: pqReadData() -- backend closed the channel unexpectedly

From: Lee Joramo <lee(dot)list(at)joramo(dot)com>
To: rob <rob(at)cabrion(dot)com>
Cc: postgre general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY error: pqReadData() -- backend closed the channel unexpectedly
Date: 2001-01-09 17:20:39
Message-ID: 19341204105223.8086@smtp.acsol.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for the feed back.

>Just a guess, but is there an embedded tab in the last field that you are
>mistaking for a space? I've done that before and pulled my hair out trying
>to figure out the issue.

Nope. When I quoted the bad line in my orignal message, I replaced
literal tabs with <TAB> with search and replace in my text editor. The
tabs are just where they should be. (The bad line is quoted at the end of
this message.)

>Any other info in the log file that might give you a clue? Typically I find
>some entry about a failed atoi (ascii to int) or something that can get me
>pointed in the right direction.

I have looked for a proper log file, and can find own. On inspecting the
startup script it looks like postmaster is being involved with the
following command:

su -l postgres -c '/usr/bin/postmaster -i -S -D/var/lib/pgsql'

For a log file, shouldn't it be something like:

su -l postgres -c '/usr/bin/postmaster -i -S -D/var/lib/pgsql >
path/logfile'

>I have felt your pain before. It's something simple that you will kick
>yourself over. Best of luck.

I have felt this pain before too. I hope that I end up kicking myself and
not cursing postgre ;-)

--
Lee A. Joramo ljoramo(at)nickads(dot)com
The Nickel Want Ads www.nickads.com
Internet Manager 970-242-5555

>> 825<TAB><TAB>f<TAB><TAB>f<TAB>Need more growing room ? Cozy up by one of
>> 2 fireplaces, and stay warm this winter! This beautifully maintained
>> rancher, in paradise hills, offers 3 bedrooms, 2 baths, dining and family
>> rooms, and a large eat-in kitchen loaded with cupboards. 1844 square feet
>> of comfortable living on a large corner lot make this the perfect home
>> for the growing family. All these amenities and more at an affordable
>> price of only $144,900. Listing#00-5968 Call Shirley McGuiness 255-3810
>> or 254-8074 Keller Williams Realty

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Heiko Irrgang 2001-01-09 17:36:27 Re: trouble with db-restore
Previous Message Tom Lane 2001-01-09 17:11:58 Re: ECPG could not connect to the database.