postgrespro / mmts Goto Github PK
View Code? Open in Web Editor NEWmultimaster
License: GNU Affero General Public License v3.0
multimaster
License: GNU Affero General Public License v3.0
PostgreSQL Database Management System ===================================== This directory contains the source code distribution of the PostgreSQL database management system. PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings. PostgreSQL has many language interfaces, many of which are listed here: http://www.postgresql.org/download See the file INSTALL for instructions on how to build and install PostgreSQL. That file also lists supported operating systems and hardware platforms and contains information regarding any other software packages that are required to build or run the PostgreSQL system. Copyright and license information can be found in the file COPYRIGHT. A comprehensive documentation set is included in this distribution; it can be read as described in the installation instructions. The latest version of this software may be obtained at http://www.postgresql.org/download/. For more information look at our web site located at http://www.postgresql.org/.
Hello
I have compiled the patched version ( (based on Postgres 13)) from https://github.com/postgrespro/postgres_cluster/tree/rel13_mm_2
and got the message "All of PostgreSQL successfully made. Ready to install.
"
Next, I see that the contrib/mmts folder is already in the repository. I go to the folder and try to run the command "make install". I get
the make error: * * * There is no rule for building the target "src/multimaster. o" required for "multimaster.so". Stop.
OK, I'm going the other way. Deleted the "contrib/mmts" folder and executed command chain:
cd contrib
git clone https://github.com/postgrespro/mmts/
cd mmts
make install
Then I got the error
src/multimaster. c:13:10: fatal error: access/table. h: There is no such file or directory
#include "access/table.h"
There really is no such file in the "patched version" (based on Postgres 13), but there is in PostgreSQL 13.
As an experiment, I try to throw up the missing files from the original PostgreSQL 13.
I get errors:
src/multimaster. c:1834:18: error: "BackgroundWorker" {aka "struct BackgroundWorker"} has no member named "bgw_type"; did you mean "bgw_name"?
src/multimaster.c:1845:2: error: unknown type name "TableScanDesc"; did you mean "HeapScanDesc"?
etc.
What did I do wrong to build mmts from source ? Should the mmts build currently be done with PostgreSQL 12/13 (not Postgres Pro)? What other patches should be used for this? Are the patches publicly available?
Hello, I am looking for a Multimaster solution for postgres. I am interested in this project. But when I try to compile I get an error. Can you help me.
here is the error message:
user@user:/tmp/mmts$ sudo make install Makefile:91: warning: overriding recipe for target 'check' /usr/lib/postgresql/13/lib/pgxs/src/makefiles/pgxs.mk:433: warning: ignoring old recipe for target 'check' gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I/tmp/mmts/src/include -I/usr/include/postgresql -I. -I./ -I/usr/include/postgresql/13/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/multimaster.o src/multimaster.c src/multimaster.c: In function ‘_PG_init’: src/multimaster.c:743:9: error: ‘DetectGlobalDeadLock’ undeclared (first use in this function); did you mean ‘MtmDetectGlobalDeadLock’? 743 | DetectGlobalDeadLock = MtmDetectGlobalDeadLock; | ^~~~~~~~~~~~~~~~~~~~ | MtmDetectGlobalDeadLock src/multimaster.c:743:9: note: each undeclared identifier is reported only once for each function it appears in src/multimaster.c: In function ‘check_config’: src/multimaster.c:854:13: error: ‘max_prepared_xacts’ undeclared (first use in this function); did you mean ‘pg_prepared_xact’? 854 | if (max_prepared_xacts < 1) | ^~~~~~~~~~~~~~~~~~ | pg_prepared_xact src/multimaster.c: In function ‘MtmMesageToString’: src/multimaster.c:2350:62: error: expected ‘)’ before ‘XID_FMT’ 2350 | appendStringInfo(&si, ", \"xid\": \"" XID_FMT "\"", msg->xid); | ~ ^~~~~~~~ | ) src/multimaster.c: In function ‘mtm_hold_backends’: src/multimaster.c:2513:17: error: unknown type name ‘PreparedTransaction’ 2513 | PreparedTransaction pxacts; | ^~~~~~~~~~~~~~~~~~~ src/multimaster.c:2517:30: warning: implicit declaration of function ‘GetPreparedTransactions’ [-Wimplicit-function-declaration] 2517 | n_prepares = GetPreparedTransactions(&pxacts); | ^~~~~~~~~~~~~~~~~~~~~~~ src/multimaster.c:2523:50: error: subscripted value is neither array nor pointer nor vector 2523 | deserialize_xstate(pxacts[i].state_3pc, &xinfo, >x_state, PANIC); | ^ src/multimaster.c:2529:31: warning: passing argument 1 of ‘pfree’ makes pointer from integer without a cast [-Wint-conversion] 2529 | pfree(pxacts); | ^~~~~~ | | | int In file included from /usr/include/postgresql/13/server/postgres.h:48, from src/multimaster.c:10: /usr/include/postgresql/13/server/utils/palloc.h:81:25: note: expected ‘void *’ but argument is of type ‘int’ 81 | extern void pfree(void *pointer); | ~~~~~~^~~~~~~ make: *** [<builtin>: src/multimaster.o] Error 1
my system is: Linux ku 5.13.0-30-generic #33-Ubuntu SMP Fri Feb 4 17:03:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.