pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacob Champion <pchampion@pivotal.io>
Cc: pgsql-hackers@lists.postgresql.org, Nikhil Benesch <nikhil.benesch@gmail.com>
Subject: Re: [PATCH] Support negative indexes in split_part
Date: Fri, 13 Nov 2020 13:53:27 -0500
Message-ID: <393226.1605293607@sss.pgh.pa.us> (raw)
In-Reply-To: <160503709681.7362.10221272161043601074.pgcf@coridan.postgresql.org>
References: <cbb7f861-6162-3a51-9823-97bc3aa0b638@gmail.com>
	<cbb7f861-6162-3a51-9823-97bc3aa0b638@gmail.com>
	<160503709681.7362.10221272161043601074.pgcf@coridan.postgresql.org>

Jacob Champion <pchampion@pivotal.io> writes:
> Patch looks good to me. Seems like a useful feature, and I agree that the two-pass implementation makes the change very easy to review.

LGTM too.  I made a couple of cosmetic improvements and pushed it.

> Quick note on test coverage: gcov marks the "needle not found" branch (the one marked `/* special case if fldsep not found at all */`) as being completely uncovered. I don't think that needs to gate this patch; it looks like it was uncovered before this feature was added.

We seem to be trying for full test coverage of this function now,
so I added a test case for that branch too.

> Doc builds are currently failing due to what appears to be an xmllint failure:

Unrelated, but see

https://www.postgresql.org/message-id/flat/E2EE6B76-2D96-408A-B961-CAE47D1A86F0%40yesql.se

			regards, tom lane





view thread (5+ messages)

Message-ID: <393226.1605293607@sss.pgh.pa.us>
Permalink:  ../393226.1605293607@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/393226.1605293607@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pchampion@pivotal.io, nikhil.benesch@gmail.com
  Subject: Re: [PATCH] Support negative indexes in split_part
  In-Reply-To: <393226.1605293607@sss.pgh.pa.us>
  References: <cbb7f861-6162-3a51-9823-97bc3aa0b638@gmail.com> <160503709681.7362.10221272161043601074.pgcf@coridan.postgresql.org> <393226.1605293607@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox