pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
5+ messages / 1 participants
[nested] [flat]

* pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
@ 2016-03-19 16:07 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-03-19 16:07 UTC (permalink / raw)
  To: pgsql-committers

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Now that we know about the %top{} trick, we can revert to building flex
lexers as separate .o files.  This is worth doing for a couple of reasons
besides sheer cleanliness.  We can narrow the scope of the -Wno-error flag
that's forced on scan.c.  Also, since these grammar and lexer files are
so large, splitting them into separate build targets should have some
advantages in build speed, particularly in parallel or ccache'd builds.

We have quite a few other .l files that could be changed likewise, but the
above arguments don't apply to them, so the benefit of fixing them seems
pretty minimal.  Leave the rest for some other day.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/72b1e3a21f0540ffa5c1f8f474b6c52097a368bb

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 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: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
@ 2016-12-11 23:04 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-12-11 23:04 UTC (permalink / raw)
  To: pgsql-committers

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Back-patch commit 72b1e3a21 into the pre-9.6 branches.

As noted in the original commit, this has some extra benefits: we can
narrow the scope of the -Wno-error flag that's forced on scan.c.  Also,
since these grammar and lexer files are so large, splitting them into
separate build targets should have some advantages in build speed,
particularly in parallel or ccache'd builds.

However, the real reason for doing this now is that it avoids symbol-
redefinition warnings (or worse) with the latest version of flex.
It's not unreasonable that people would want to compile our old branches
with recent tools.  Per report from Дилян Палаузов.

Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4262c5b1eecc63f12f86daa293428009eee54b5c

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 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: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
@ 2016-12-11 23:04 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-12-11 23:04 UTC (permalink / raw)
  To: pgsql-committers

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Back-patch commit 72b1e3a21 into the pre-9.6 branches.

As noted in the original commit, this has some extra benefits: we can
narrow the scope of the -Wno-error flag that's forced on scan.c.  Also,
since these grammar and lexer files are so large, splitting them into
separate build targets should have some advantages in build speed,
particularly in parallel or ccache'd builds.

However, the real reason for doing this now is that it avoids symbol-
redefinition warnings (or worse) with the latest version of flex.
It's not unreasonable that people would want to compile our old branches
with recent tools.  Per report from Дилян Палаузов.

Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7192865bdc48ded15caaba63fef313ff9e84eb71

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 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: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
@ 2016-12-11 23:04 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-12-11 23:04 UTC (permalink / raw)
  To: pgsql-committers

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Back-patch commit 72b1e3a21 into the pre-9.6 branches.

As noted in the original commit, this has some extra benefits: we can
narrow the scope of the -Wno-error flag that's forced on scan.c.  Also,
since these grammar and lexer files are so large, splitting them into
separate build targets should have some advantages in build speed,
particularly in parallel or ccache'd builds.

However, the real reason for doing this now is that it avoids symbol-
redefinition warnings (or worse) with the latest version of flex.
It's not unreasonable that people would want to compile our old branches
with recent tools.  Per report from Дилян Палаузов.

Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/73ae395d84198ff14792522c79471975936ee76a

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 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: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
@ 2016-12-11 23:04 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-12-11 23:04 UTC (permalink / raw)
  To: pgsql-committers

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Back-patch commit 72b1e3a21 into the pre-9.6 branches.

As noted in the original commit, this has some extra benefits: we can
narrow the scope of the -Wno-error flag that's forced on scan.c.  Also,
since these grammar and lexer files are so large, splitting them into
separate build targets should have some advantages in build speed,
particularly in parallel or ccache'd builds.

However, the real reason for doing this now is that it avoids symbol-
redefinition warnings (or worse) with the latest version of flex.
It's not unreasonable that people would want to compile our old branches
with recent tools.  Per report from Дилян Палаузов.

Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/329361cfa3209f65f44808535b2e9b7708781d89

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 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:[~2016-12-11 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-19 16:07 pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st Tom Lane <tgl@sss.pgh.pa.us>
2016-12-11 23:04 pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st Tom Lane <tgl@sss.pgh.pa.us>
2016-12-11 23:04 pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st Tom Lane <tgl@sss.pgh.pa.us>
2016-12-11 23:04 pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st Tom Lane <tgl@sss.pgh.pa.us>
2016-12-11 23:04 pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st 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