Home > Software design >  Change PostgreSQL versions to use it with Apache AGE
Change PostgreSQL versions to use it with Apache AGE

Time:01-20

I have been using Apache AGE with PostgreSQL version 11-17, installed postgres from source code, but I was informed that it is better to clone it directly. So then I followed these steps:

  1. Cloned with git clone https://git.postgresql.org/git/postgresql.git ;
  2. Changed the branch to origin/REL_12_STABLE ;
  3. Configured with ./configure -prefix=S(pwd) --enable-cassert -enable-debug CFLAGS="-glldb -Og -g3 -fno-omit-frame-pointer" ;
  4. Installed it with make install .

Then I went to where Apache AGE was installed and typed the command:

sudo make PG_CONFIG=/Users/.../postgresql/bin/pg_config install

and then I got a bunch of errors:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [src/backend/utils/adt/agtype.o] Error 1

I guess that this error occurs due to the fact that I changed to REL_12_STABLE and AGE works only with REL_12_ALPHA but with git branch -r it does not show the alpha version so I can change to it.

Am I following these steps correctly or am I missing something here? Is the REL_12_ALPHA only available from source code?

CodePudding user response:

You should use the branch "REL_12_STABLE" from PostgreSQL and the branch "AGE PG12.1.0 ALPHA" from Apache AGE.

  • Related