pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Cosmetic improvements for default text search parser's ts_headli
5+ messages / 1 participants
[nested] [flat]

* pgsql: Cosmetic improvements for default text search parser's ts_headli
@ 2020-04-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-04-09 17:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Cosmetic improvements for default text search parser's ts_headline code.

This code was woefully unreadable and under-commented.  Try to improve
matters by adding comments, using some macros to make complicated
if-tests more readable, using boolean type where appropriate, etc.
There are a couple of tiny coding improvements too, but this commit
includes (I hope) no behavioral change.

Nonetheless, back-patch as far as 9.6, because a followup bug-fixing
commit depends on this.

Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ff081d6bb8726e14c3bc1e8a24b4814b3d55ac25

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 273 ++++++++++++++++++++++++--------------
1 file changed, 176 insertions(+), 97 deletions(-)



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

* pgsql: Cosmetic improvements for default text search parser's ts_headli
@ 2020-04-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-04-09 17:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Cosmetic improvements for default text search parser's ts_headline code.

This code was woefully unreadable and under-commented.  Try to improve
matters by adding comments, using some macros to make complicated
if-tests more readable, using boolean type where appropriate, etc.
There are a couple of tiny coding improvements too, but this commit
includes (I hope) no behavioral change.

Nonetheless, back-patch as far as 9.6, because a followup bug-fixing
commit depends on this.

Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1306edeae3b362b57b37b41e7b6a14406d03ebad

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 273 ++++++++++++++++++++++++--------------
1 file changed, 176 insertions(+), 97 deletions(-)



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

* pgsql: Cosmetic improvements for default text search parser's ts_headli
@ 2020-04-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-04-09 17:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Cosmetic improvements for default text search parser's ts_headline code.

This code was woefully unreadable and under-commented.  Try to improve
matters by adding comments, using some macros to make complicated
if-tests more readable, using boolean type where appropriate, etc.
There are a couple of tiny coding improvements too, but this commit
includes (I hope) no behavioral change.

Nonetheless, back-patch as far as 9.6, because a followup bug-fixing
commit depends on this.

Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/638519156ef096a0bf30cf017108b2cfa8625313

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 273 ++++++++++++++++++++++++--------------
1 file changed, 176 insertions(+), 97 deletions(-)



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

* pgsql: Cosmetic improvements for default text search parser's ts_headli
@ 2020-04-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-04-09 17:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Cosmetic improvements for default text search parser's ts_headline code.

This code was woefully unreadable and under-commented.  Try to improve
matters by adding comments, using some macros to make complicated
if-tests more readable, using boolean type where appropriate, etc.
There are a couple of tiny coding improvements too, but this commit
includes (I hope) no behavioral change.

Nonetheless, back-patch as far as 9.6, because a followup bug-fixing
commit depends on this.

Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b10f8bb9fd39da44efd411aec5c643b92bd23676

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 273 ++++++++++++++++++++++++--------------
1 file changed, 176 insertions(+), 97 deletions(-)



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

* pgsql: Cosmetic improvements for default text search parser's ts_headli
@ 2020-04-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-04-09 17:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Cosmetic improvements for default text search parser's ts_headline code.

This code was woefully unreadable and under-commented.  Try to improve
matters by adding comments, using some macros to make complicated
if-tests more readable, using boolean type where appropriate, etc.
There are a couple of tiny coding improvements too, but this commit
includes (I hope) no behavioral change.

Nonetheless, back-patch as far as 9.6, because a followup bug-fixing
commit depends on this.

Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/afab3998685f61d07c3ae05bf22fc5f2a0e92557

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 273 ++++++++++++++++++++++++--------------
1 file changed, 176 insertions(+), 97 deletions(-)



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


end of thread, other threads:[~2020-04-09 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 17:19 pgsql: Cosmetic improvements for default text search parser's ts_headli Tom Lane <tgl@sss.pgh.pa.us>
2020-04-09 17:19 pgsql: Cosmetic improvements for default text search parser's ts_headli Tom Lane <tgl@sss.pgh.pa.us>
2020-04-09 17:19 pgsql: Cosmetic improvements for default text search parser's ts_headli Tom Lane <tgl@sss.pgh.pa.us>
2020-04-09 17:19 pgsql: Cosmetic improvements for default text search parser's ts_headli Tom Lane <tgl@sss.pgh.pa.us>
2020-04-09 17:19 pgsql: Cosmetic improvements for default text search parser's ts_headli Tom Lane <tgl@sss.pgh.pa.us>

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