Re: Re: Add generate_series(date, date) and generate_series(date, date, integer)

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: David Steele <david(at)pgmasters(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: Add generate_series(date, date) and generate_series(date, date, integer)
Date: 2016-02-02 18:01:22
Message-ID: CADkLM=e2-V=HBiuBabpBZTG_A10EkDBjcrma0t6L+cSLPACaGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Doh, I left that comment to myself in there. :)

The corresponding structs in timestamp.c and int.c have no comment, so
suggestions of what should be there are welcome. In the interim I put in
this:

/* state for generate_series_date(date,date,[step]) */

Extra linefeed after struct removed.

Do you have any insight as to why the documentation test failed?

In the mean time, here's the updated patch.

On Tue, Feb 2, 2016 at 11:41 AM, David Steele <david(at)pgmasters(dot)net> wrote:

> The following review has been posted through the commitfest application:
> make installcheck-world: tested, passed
> Implements feature: tested, passed
> Spec compliant: tested, passed
> Documentation: tested, failed
>
> Everything looks good except for two minor issues:
>
> 1) There should be an informative comment for this struct:
>
> +/* Corey BEGIN */
> +typedef struct
> +{
> + DateADT current;
> + DateADT stop;
> + int32 step;
> +} generate_series_date_fctx;
>
> 2) There's an extra linefeed after the struct. Needed?
>
> Regards,
> -David
>
> The new status of this patch is: Waiting on Author
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

Attachment Content-Type Size
v3.generate_series_date.patch application/octet-stream 8.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2016-02-02 18:08:16 Re: Re: Add generate_series(date, date) and generate_series(date, date, integer)
Previous Message Teodor Sigaev 2016-02-02 17:17:00 Re: Tsvector editing functions