Re: [PATCHES] Forcing current WAL file to be archived - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [PATCHES] Forcing current WAL file to be archived
Date
Msg-id 1155766061.2649.441.camel@holly
Whole thread Raw
In response to Re: [PATCHES] Forcing current WAL file to be archived  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, 2006-08-16 at 17:09 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> writes:
> > Wise one: what should my pg_proc look like?
>
> > DATA(insert OID = 2850 ( pg_xlogfile_name_offset    PGNSP PGUID 12 f f t f
> > i 1 2249 "25" "25 25 23" "i o o" _null_ pg_xlogfile_name_offset -
> > _null_ ));
>
> Oh, as far as that goes, the array columns need to look like something
> array_in will eat; and you should provide parameter names so that
> "select * from" will produce useful headings.  So probably more like
>
> DATA(insert OID = 2850 ( pg_xlogfile_name_offset    PGNSP PGUID 12 f f t f i 1 2249 "25" "{25,25,23}" "{i,o,o}"
"{wal_offset,filename,offset}"pg_xlogfile_name_offset - _null_ )); 
>
> I think you can get away without inner quotes (ie, not "{'i','o','o'}")
> as long as you aren't using anything weird like spaces in a parameter name.

archive_timeout++.patch re-submitted on other thread, now including
these changes also.

--
  Simon Riggs
  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: BugTracker (Was: Re: 8.2 features status)
Next
From: Gregory Stark
Date:
Subject: Re: An Idea for planner hints