Giter Club home page Giter Club logo

mmts's Introduction

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/.

mmts's People

Contributors

afiskon avatar alexanderlaw avatar anna-akenteva avatar antamel avatar arssher avatar danolivo avatar dmpgpro avatar funbringer avatar funny-falcon avatar kelvich avatar knizhnik avatar kovdb75 avatar kvap avatar ololobus avatar rzharkov avatar vbwagner avatar za-arthur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmts's Issues

Build issues

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?

Compilation error

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, &gtx_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

image

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

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.