Thread

Commits

  1. Install JIT related headers.

  1. Install JIT headers

    Donald Dong <xdong@csumb.edu> — 2019-01-22T19:08:40Z

    Hi,
    
    In the standard_planner, we set the proper JIT flags on the resulting
    PlannedStmt node. We also offered a planer hook so extensions can
    add customized planners. The JIT flags in jit/jit.h however, is
    not present on the system. I think it's probably better to
    install the jit headers?
    
    
    diff --git a/src/include/Makefile b/src/include/Makefile
    index 6bdfd7db91..041702809e 100644
    --- a/src/include/Makefile
    +++ b/src/include/Makefile
    @@ -19,7 +19,7 @@ all: pg_config.h pg_config_ext.h pg_config_os.h
     # Subdirectories containing installable headers
     SUBDIRS = access bootstrap catalog commands common datatype \
            executor fe_utils foreign \
    -       lib libpq mb nodes optimizer parser partitioning postmaster \
    +       jit lib libpq mb nodes optimizer parser partitioning postmaster \
            regex replication rewrite \
            statistics storage tcop snowball snowball/libstemmer tsearch \
            tsearch/dicts utils port port/atomics port/win32 port/win32_msvc \
    
     
    Regards,
    Donald Dong
    
    
    
  2. Re: Install JIT headers

    Andres Freund <andres@anarazel.de> — 2019-01-22T19:42:35Z

    Hi,
    
    On 2019-01-22 11:08:40 -0800, Donald Dong wrote:
    > In the standard_planner, we set the proper JIT flags on the resulting
    > PlannedStmt node. We also offered a planer hook so extensions can
    > add customized planners. The JIT flags in jit/jit.h however, is
    > not present on the system. I think it's probably better to
    > install the jit headers?
    > 
    > 
    > diff --git a/src/include/Makefile b/src/include/Makefile
    > index 6bdfd7db91..041702809e 100644
    > --- a/src/include/Makefile
    > +++ b/src/include/Makefile
    > @@ -19,7 +19,7 @@ all: pg_config.h pg_config_ext.h pg_config_os.h
    >  # Subdirectories containing installable headers
    >  SUBDIRS = access bootstrap catalog commands common datatype \
    >         executor fe_utils foreign \
    > -       lib libpq mb nodes optimizer parser partitioning postmaster \
    > +       jit lib libpq mb nodes optimizer parser partitioning postmaster \
    >         regex replication rewrite \
    >         statistics storage tcop snowball snowball/libstemmer tsearch \
    >         tsearch/dicts utils port port/atomics port/win32 port/win32_msvc \
    
    Seems like a good idea. I think we ought to backpatch that to 11?  Will
    do tomorrow if nobody protests.
    
    Greetings,
    
    Andres Freund
    
    
    
  3. Re: Install JIT headers

    David Fetter <david@fetter.org> — 2019-01-22T20:51:57Z

    On Tue, Jan 22, 2019 at 11:42:35AM -0800, Andres Freund wrote:
    > Hi,
    > 
    > On 2019-01-22 11:08:40 -0800, Donald Dong wrote:
    > > In the standard_planner, we set the proper JIT flags on the resulting
    > > PlannedStmt node. We also offered a planer hook so extensions can
    > > add customized planners. The JIT flags in jit/jit.h however, is
    > > not present on the system. I think it's probably better to
    > > install the jit headers?
    > > 
    > > 
    > > diff --git a/src/include/Makefile b/src/include/Makefile
    > > index 6bdfd7db91..041702809e 100644
    > > --- a/src/include/Makefile
    > > +++ b/src/include/Makefile
    > > @@ -19,7 +19,7 @@ all: pg_config.h pg_config_ext.h pg_config_os.h
    > >  # Subdirectories containing installable headers
    > >  SUBDIRS = access bootstrap catalog commands common datatype \
    > >         executor fe_utils foreign \
    > > -       lib libpq mb nodes optimizer parser partitioning postmaster \
    > > +       jit lib libpq mb nodes optimizer parser partitioning postmaster \
    > >         regex replication rewrite \
    > >         statistics storage tcop snowball snowball/libstemmer tsearch \
    > >         tsearch/dicts utils port port/atomics port/win32 port/win32_msvc \
    > 
    > Seems like a good idea. I think we ought to backpatch that to 11?  Will
    > do tomorrow if nobody protests.
    
    +1 for back-patching
    
    Best,
    David.
    -- 
    David Fetter <david(at)fetter(dot)org> http://fetter.org/
    Phone: +1 415 235 3778
    
    Remember to vote!
    Consider donating to Postgres: http://www.postgresql.org/about/donate
    
    
    
  4. Re: Install JIT headers

    Andres Freund <andres@anarazel.de> — 2019-01-28T21:57:07Z

    On 2019-01-22 11:42:35 -0800, Andres Freund wrote:
    > Hi,
    > 
    > On 2019-01-22 11:08:40 -0800, Donald Dong wrote:
    > > In the standard_planner, we set the proper JIT flags on the resulting
    > > PlannedStmt node. We also offered a planer hook so extensions can
    > > add customized planners. The JIT flags in jit/jit.h however, is
    > > not present on the system. I think it's probably better to
    > > install the jit headers?
    > > 
    > > 
    > > diff --git a/src/include/Makefile b/src/include/Makefile
    > > index 6bdfd7db91..041702809e 100644
    > > --- a/src/include/Makefile
    > > +++ b/src/include/Makefile
    > > @@ -19,7 +19,7 @@ all: pg_config.h pg_config_ext.h pg_config_os.h
    > >  # Subdirectories containing installable headers
    > >  SUBDIRS = access bootstrap catalog commands common datatype \
    > >         executor fe_utils foreign \
    > > -       lib libpq mb nodes optimizer parser partitioning postmaster \
    > > +       jit lib libpq mb nodes optimizer parser partitioning postmaster \
    > >         regex replication rewrite \
    > >         statistics storage tcop snowball snowball/libstemmer tsearch \
    > >         tsearch/dicts utils port port/atomics port/win32 port/win32_msvc \
    > 
    > Seems like a good idea. I think we ought to backpatch that to 11?  Will
    > do tomorrow if nobody protests.
    
    Pushed to both. Thanks for the patch!
    
    Thanks to Bruce for reminding me of the patch, too.
    
    Greetings,
    
    Andres Freund