Skip site navigation (1) Skip section navigation (2)

Re: pg_restore COPY error handling

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_restore COPY error handling
Date: 2006-01-31 21:42:22
Message-ID: 200601312142.k0VLgMW11602@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Stephen Frost wrote:
-- Start of PGP signed section.
> Bruce, et al,
> 
> * Bruce Momjian (pgman(at)candle(dot)pha(dot)pa(dot)us) wrote:
> > This needs a little style cleanup but I can do that.
> 
> Thanks!
> 
> > Your patch has been added to the PostgreSQL unapplied patches list at:
> > 
> > 	http://momjian.postgresql.org/cgi-bin/pgpatches
> > 
> > It will be applied as soon as one of the PostgreSQL committers reviews
> > and approves it.
> 
> Great!  It'd be really nice to have this fix in 8.1.3... :)

No, it will not be in 8.1.3.  It is a new feature.

---------------------------------------------------------------------------


> 
> 	Thanks again,
> 
> 		Stephen
> 
> > ---------------------------------------------------------------------------
> > Stephen Frost wrote:
> > > * Stephen Frost (sfrost(at)snowman(dot)net) wrote:
> > > > Needs to be changed to handle whitespace in front of the actual 'COPY',
> > > > unless someone else has a better idea.  This should be reasonably
> > > > trivial to do though...  If you'd like me to make that change and send
> > > > in a new patch, just let me know.
> > > 
> > > Fixed, using isspace().  Also added an output message to make it a bit
> > > clearer when a failed COPY has been detected, etc.
> > > 
> > > Updated patch attached.
> > > 
> > > 	Thanks,
> > > 
> > > 		Stephen
> > 
> > [ Attachment, skipping... ]
> > 
> > > 
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Have you searched our list archives?
> > > 
> > >                http://archives.postgresql.org
> > 
> > -- 
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-01-31 22:24:32
Subject: Re: [PATCHES] BUG #2221: Bad delimiters allowed in COPY ...
Previous:From: Bruce MomjianDate: 2006-01-31 21:20:55
Subject: Re: [BUGS] BUG #2195: log_min_messages crash server when in DEBUG3 to

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group