pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use JsonbIteratorToken consistently in automatic variable declar
5+ messages / 2 participants
[nested] [flat]

* pgsql: Use JsonbIteratorToken consistently in automatic variable declar
@ 2015-10-12 03:57 Noah Misch <noah@leadboat.com>
  2015-10-12 13:56 ` Re: pgsql: Use JsonbIteratorToken consistently in automatic variable declar Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Noah Misch @ 2015-10-12 03:57 UTC (permalink / raw)
  To: pgsql-committers

Use JsonbIteratorToken consistently in automatic variable declarations.

Many functions stored JsonbIteratorToken values in variables of other
integer types.  Also, standardize order relative to other declarations.
Expect compilers to generate the same code before and after this change.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7732d49ca211571552bf82b5207deed95c0cc09c

Modified Files
--------------
src/backend/utils/adt/jsonb.c      |    5 +++--
src/backend/utils/adt/jsonb_gin.c  |   10 +++++-----
src/backend/utils/adt/jsonb_op.c   |    4 ++--
src/backend/utils/adt/jsonb_util.c |    6 +++---
src/backend/utils/adt/jsonfuncs.c  |   34 +++++++++++++++++-----------------
5 files changed, 30 insertions(+), 29 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Use JsonbIteratorToken consistently in automatic variable declar
  2015-10-12 03:57 pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>
@ 2015-10-12 13:56 ` Tom Lane <tgl@sss.pgh.pa.us>
  2015-10-12 14:17   ` Re: pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2015-10-12 13:56 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: pgsql-committers

Noah Misch <noah@leadboat.com> writes:
> Use JsonbIteratorToken consistently in automatic variable declarations.
> Many functions stored JsonbIteratorToken values in variables of other
> integer types.  Also, standardize order relative to other declarations.
> Expect compilers to generate the same code before and after this change.

FWIW, I think this sort of thing should get back-patched.  It's presumably
pretty low-risk, and if you don't do that, you've created a bunch of
points of failure for bug-fix back-patches.  In code as volatile as the
jsonb code has been, it's foolish not to try to keep the branches as much
in sync as we can.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Use JsonbIteratorToken consistently in automatic variable declar
  2015-10-12 03:57 pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>
  2015-10-12 13:56 ` Re: pgsql: Use JsonbIteratorToken consistently in automatic variable declar Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-10-12 14:17   ` Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2015-10-12 14:17 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On Mon, Oct 12, 2015 at 09:56:30AM -0400, Tom Lane wrote:
> Noah Misch <noah@leadboat.com> writes:
> > Use JsonbIteratorToken consistently in automatic variable declarations.
> > Many functions stored JsonbIteratorToken values in variables of other
> > integer types.  Also, standardize order relative to other declarations.
> > Expect compilers to generate the same code before and after this change.
> 
> FWIW, I think this sort of thing should get back-patched.

Works for me.  Done.


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Use JsonbIteratorToken consistently in automatic variable declar
@ 2015-10-12 14:14 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2015-10-12 14:14 UTC (permalink / raw)
  To: pgsql-committers

Use JsonbIteratorToken consistently in automatic variable declarations.

Many functions stored JsonbIteratorToken values in variables of other
integer types.  Also, standardize order relative to other declarations.
Expect compilers to generate the same code before and after this change.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f75c4fc1dc93d60246df324bf595912d557bcba6

Modified Files
--------------
src/backend/utils/adt/jsonb.c      |    5 +++--
src/backend/utils/adt/jsonb_gin.c  |   10 +++++-----
src/backend/utils/adt/jsonb_op.c   |    4 ++--
src/backend/utils/adt/jsonb_util.c |    6 +++---
src/backend/utils/adt/jsonfuncs.c  |   34 +++++++++++++++++-----------------
5 files changed, 30 insertions(+), 29 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Use JsonbIteratorToken consistently in automatic variable declar
@ 2015-10-12 14:14 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noah Misch @ 2015-10-12 14:14 UTC (permalink / raw)
  To: pgsql-committers

Use JsonbIteratorToken consistently in automatic variable declarations.

Many functions stored JsonbIteratorToken values in variables of other
integer types.  Also, standardize order relative to other declarations.
Expect compilers to generate the same code before and after this change.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/22c5705f81717dd0622ebfb13a617e6104d1fbd9

Modified Files
--------------
src/backend/utils/adt/jsonb.c      |    2 +-
src/backend/utils/adt/jsonb_gin.c  |   10 +++++-----
src/backend/utils/adt/jsonb_op.c   |    4 ++--
src/backend/utils/adt/jsonb_util.c |    6 +++---
src/backend/utils/adt/jsonfuncs.c  |   10 +++++-----
5 files changed, 16 insertions(+), 16 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2015-10-12 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 03:57 pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>
2015-10-12 13:56 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-10-12 14:17   ` Noah Misch <noah@leadboat.com>
2015-10-12 14:14 pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>
2015-10-12 14:14 pgsql: Use JsonbIteratorToken consistently in automatic variable declar Noah Misch <noah@leadboat.com>

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