>> And a pg_dump that cores trying to dump someone's database is *not*
>> a "minor" problem.
No, I didn't mean minor when it happens, I meant minor to fix.  Sorry.  Of
course it's serious for the user.

>> So I'm leaning towards leaving the pg_dump code as-is and fixing the
>> limitation in pqexpbuffer.
Yes, this is the correct solution.  What's the best way? To check the
incoming string lengths for anything aproaching or greater than 1kB and
slice it up from there?

MikeA

Sun, 16 Jan 2000 22:07:37 +0200
"Ansley, Michael" <Michael.Ansley@intec.co.za>
RE: [HACKERS] pg_dump not in very good shape 
"Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
>> So I'm leaning towards leaving the pg_dump code as-is and fixing the
>> limitation in pqexpbuffer.

> Yes, this is the correct solution.  What's the best way? To check the
> incoming string lengths for anything aproaching or greater than 1kB and
> slice it up from there?

I don't think we can do that short of writing a complete snprintf
emulation --- so we might as well just use snprintf.

			regards, tom lane

Sun, 16 Jan 2000 15:16:52 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] pg_dump not in very good shape 
Tom Lane wrote:
> 
> "Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> >> So I'm leaning towards leaving the pg_dump code as-is and fixing the
> >> limitation in pqexpbuffer.
> 
> > Yes, this is the correct solution.  What's the best way? To check the
> > incoming string lengths for anything aproaching or greater than 1kB and
> > slice it up from there?
> 
> I don't think we can do that short of writing a complete snprintf
> emulation --- so we might as well just use snprintf.
> 
>                         regards, tom lane

Can I go ahead and use today's snapshot to write up the diffs for
pg_dump for dumping COMMENT ON statements?

Mike Mascari

Sun, 16 Jan 2000 15:30:21 -0500
Mike Mascari <mascarm@mascari.com>
Re: [HACKERS] pg_dump not in very good shape
Mike Mascari <mascarm@mascari.com> writes:
> Can I go ahead and use today's snapshot to write up the diffs for
> pg_dump for dumping COMMENT ON statements?

Sure --- just don't test it with any long comments ;-)

			regards, tom lane

Sun, 16 Jan 2000 15:47:11 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] pg_dump not in very good shape 