Bug #698: Error haciendo Backup con pg_dump!!

Started by PostgreSQL Bugs Listalmost 24 years ago9 messagesbugs
Jump to latest
#1PostgreSQL Bugs List
pgsql-bugs@postgresql.org

Christian Gonzalez (christiangda@cantv.net) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
Error haciendo Backup con pg_dump!!

Long Description
[avl@bdserver avl]$ nohup pg_dump -R -O leemail2 | gzip -c > /tmp/resp.leemail2_25_6_2002_1_00_pm.sql.gz &
[avl@bdserver avl]$ jobs
[1]: + Done nohup pg_dump -R -O leemail2 | gzip -c >/tmp/resp.leemail2_25_6_2002_1_00_pm.sql.gz [avl@bdserver avl]$
[avl@bdserver avl]$ ERROR: MemoryContextAlloc: invalid request size 4294967293
PQendcopy: resetting connection
SQL query to dump the contents of Table 'datamailentrada_historico' did not execute correctly. After we read all the table contents from the backend, PQendcopy() failed. Explanation from backend: ''.
The query was: 'COPY "datamailentrada_historico" TO stdout;
'.

[1]: + Done nohup pg_dump -R -O leemail2 | gzip -c >/tmp/resp.leemail2_25_6_2002_1_00_pm.sql.gz [avl@bdserver avl]$
[avl@bdserver avl]$

Sample Code

No file was uploaded with this report

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PostgreSQL Bugs List (#1)
Re: Bug #698: Error haciendo Backup con pg_dump!!

pgsql-bugs@postgresql.org writes:

[avl@bdserver avl]$ nohup pg_dump -R -O leemail2 | gzip -c > /tmp/resp.leemail2_25_6_2002_1_00_pm.sql.gz &
[avl@bdserver avl]$ jobs
[1]+ Running nohup pg_dump -R -O leemail2 | gzip -c >/tmp/resp.leemail2_25_6_2002_1_00_pm.sql.gz &
[avl@bdserver avl]$ ERROR: MemoryContextAlloc: invalid request size 4294967293
PQendcopy: resetting connection
SQL query to dump the contents of Table 'datamailentrada_historico' did not execute correctly. After we read all the table contents from the backend, PQendcopy() failed. Explanation from backend: ''.
The query was: 'COPY "datamailentrada_historico" TO stdout;

This looks like you have some corrupted data in
datamailentrada_historico :-(.

There is not much you can do about this except try to identify and
remove the damaged row(s). You can look in the mailing list archives
for previous discussions about systematic ways to identify the location
of the damage, but basically you want to home in on which row(s) can't
be selected without provoking the error.

Once you've removed the damaged rows, you may be fortunate enough to be
able to restore them from a recent backup. Good luck!

regards, tom lane

#3Webb Sprague
wsprague100@yahoo.com
In reply to: PostgreSQL Bugs List (#1)
"Field is too small"

I am getting a "field is too small" error in an Access
DB running over ODBC. The field in question is
varchar(32).

Here is the weird thing: I am inserting into a table
with a rule that sends the result to a different
table. However, when I insert into the table without
a rule, it works fine. It also works fine both ways
from psql and isql at the command line (why oh why am
I messing around with stupid Microsoft products?!)

This is also NOT a problem with booleans--neither of
the fields are boolean.

Let me know how I might be able to help. I have logs
from my local machine and I could get logs from the
server.

Should I just use Triggers...

Thanks

W

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

#4Neil Conway
neilc@samurai.com
In reply to: Webb Sprague (#3)
Re: "Field is too small"

On Tue, 25 Jun 2002 16:50:38 -0700 (PDT)
"Webb Sprague" <wsprague100@yahoo.com> wrote:

I am getting a "field is too small" error in an Access
DB running over ODBC. The field in question is
varchar(32).

Here is the weird thing: I am inserting into a table
with a rule that sends the result to a different
table. However, when I insert into the table without
a rule, it works fine.

Can you give us a reproducible example, preferrably one that
does not involve Access?

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

#5Webb Sprague
wsprague100@yahoo.com
In reply to: Neil Conway (#4)
Re: "Field is too small"

"Webb Sprague" <wsprague100@yahoo.com> wrote:

I am getting a "field is too small" error in an

Access

DB running over ODBC. The field in question is
varchar(32).

Here is the weird thing: I am inserting into a

table

with a rule that sends the result to a different
table. However, when I insert into the table

without

a rule, it works fine.

Can you give us a reproducible example, preferrably
one that
does not involve Access?

I also sent this to the ODBC list, as it *only* breaks
in Access. Should I have not bothered BUGS with it?

Thanks
W

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

#6Hiroshi Inoue
Inoue@tpf.co.jp
In reply to: Webb Sprague (#3)
Re: [ODBC] "Field is too small"

Webb Sprague wrote:

I am getting a "field is too small" error in an Access
DB running over ODBC. The field in question is
varchar(32).

Here is the weird thing: I am inserting into a table
with a rule that sends the result to a different
table.

Are you using a DO INSTEAD rule ?
Could you send me the Mylog output ?

regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/

#7Webb Sprague
wsprague100@yahoo.com
In reply to: Hiroshi Inoue (#6)
Pass through query help (please ...:)

Hi all,

I would like to do a pass through query in a form as
part of a button-click event. I just want to fire off
a PL/PGSQL function on the Postgres server.

Is this possible? Is it easy? I just want to insert
it below where the comment says:

Private Sub foobar_Click()
On Error GoTo Err_foobar_Click

'FIRE OFF SERVER FUNCTION HERE
'SELECT server_func()

DoCmd.GoToRecord , , acNewRec

Exit_foobar_Click:
Exit Sub

Err_foobar_Click:
MsgBox Err.Description
Resume Exit_foobar_Click

End Sub

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

#8Cedar Cox
cedarc@visionforisrael.com
In reply to: Webb Sprague (#7)
Re: Pass through query help (please ...:)

Hi. Yes, I do still lurk here. Yes, it is possible to do what you
want. Have a look in the list archives at some of my ODBC VB
function stuff. It has to do with using passthrough queries for the
datasource of list and combo boxes (maybe you wanted this??).
You'll see how I did it in there and it should help you out. One
thin you'll want to change is a parameter that means "query does not
return a data set". I won't tell you details here because I
probably don't remember them correctly. If you want an answer
right now then go search, or else maybe someone else will reply
too. The 'Building Applications with MS Access' book is of
value too.

-Cedar

On Fri, 28 Jun 2002, Webb Sprague wrote:

Show quoted text

Hi all,

I would like to do a pass through query in a form as
part of a button-click event. I just want to fire off
a PL/PGSQL function on the Postgres server.

Is this possible? Is it easy? I just want to insert
it below where the comment says:

Private Sub foobar_Click()
On Error GoTo Err_foobar_Click

'FIRE OFF SERVER FUNCTION HERE
'SELECT server_func()

DoCmd.GoToRecord , , acNewRec

Exit_foobar_Click:
Exit Sub

Err_foobar_Click:
MsgBox Err.Description
Resume Exit_foobar_Click

End Sub

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

http://archives.postgresql.org

#9Webb Sprague
wsprague100@yahoo.com
In reply to: Cedar Cox (#8)
Re: Pass through query help (please ...:)

Hi Cedar,

I have searched google postgres.odbc for your name,
and I can't find anything that works (I just want to
cut and paste something in). Can you or anyone else
point me to an example or a tutorial?

Thx
W
--- Cedar Cox <cedarc@visionforisrael.com> wrote:

Hi. Yes, I do still lurk here. Yes, it is possible
to do what you
want. Have a look in the list archives at some of
my ODBC VB
function stuff. It has to do with using passthrough
queries for the
datasource of list and combo boxes (maybe you wanted
this??).
You'll see how I did it in there and it should help
you out. One
thin you'll want to change is a parameter that means
"query does not
return a data set". I won't tell you details here
because I
probably don't remember them correctly. If you want
an answer
right now then go search, or else maybe someone else
will reply
too. The 'Building Applications with MS Access'
book is of
value too.

-Cedar

On Fri, 28 Jun 2002, Webb Sprague wrote:

Hi all,

I would like to do a pass through query in a form

as

part of a button-click event. I just want to fire

off

a PL/PGSQL function on the Postgres server.

Is this possible? Is it easy? I just want to

insert

it below where the comment says:

Private Sub foobar_Click()
On Error GoTo Err_foobar_Click

'FIRE OFF SERVER FUNCTION HERE
'SELECT server_func()

DoCmd.GoToRecord , , acNewRec

Exit_foobar_Click:
Exit Sub

Err_foobar_Click:
MsgBox Err.Description
Resume Exit_foobar_Click

End Sub

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------(end of

broadcast)---------------------------

TIP 6: Have you searched our list archives?

http://archives.postgresql.org

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com