GithubHelp home page GithubHelp logo

windows build using MSYS about pg_hint_plan HOT 4 CLOSED

ossc-db avatar ossc-db commented on August 17, 2024
windows build using MSYS

from pg_hint_plan.

Comments (4)

legrandlegrand avatar legrandlegrand commented on August 17, 2024

it seems that postgres files have to be changed like in
https://github.com/bitnine-oss/agens-sql/blob/master/agens_windows/postgresql-9.4.4_win/src/include/optimizer/paths.h

where
extern bool enable_geqo;
extern int geqo_threshold;

has been modified into
extern PGDLLIMPORT bool enable_geqo;
extern PGDLLIMPORT int geqo_threshold;

to support windows builds

this has to be applyed to
src/include/optimizer/paths.h
geqo_threshold
enable_geqo
min_parallel_index_scan_size
min_parallel_table_scan_size

src/include/optimizer/cost.h
max_parallel_workers_per_gather
enable_hashjoin
enable_mergejoin
enable_nestloop
enable_indexonlyscan
enable_tidscan
enable_bitmapscan
enable_indexscan
enable_seqscan
disable_cost

src/include/utils/guc.h
application_name

src/include/miscadmin.h
max_worker_processes

would it be possible to create a patch for pg core
as done here
https://www.postgresql.org/message-id/CAJCy68fscdNhmzFPS4kyO00CADkvXvEa-28H-OtENk-pa2OTWw%40mail.gmail.com

Regards
PAscal

from pg_hint_plan.

legrandlegrand avatar legrandlegrand commented on August 17, 2024

this has been asked to pg commiters
http://www.postgresql-archive.org/Add-PGDLLIMPORT-to-enable-hashagg-td6004487.html

Regards
PAscal

from pg_hint_plan.

legrandlegrand avatar legrandlegrand commented on August 17, 2024

Fixed in pg11
http://www.postgresql-archive.org/pgsql-Mark-assorted-GUC-variables-as-PGDLLIMPORT-tp6005257.html

from pg_hint_plan.

legrandlegrand avatar legrandlegrand commented on August 17, 2024

Fix also Backported to 10 ans 9.6 releases

from pg_hint_plan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.