Forum OpenACS Q&A: PostgreSQL installation / "createlang plpgsql template1" / autocommit error message

Hello all,

At step 6 of the step-by-step postgreSQL installation instructions ("Set up plpgsql and allow your user to have access."),

https://openacs.org/doc/openacs-4-6-3/postgres.html

I receive the following message when executing the command "createlang plpgsql template1".

ERROR:  'autocommit' is not a valid option name
createlang: language installation failed

I don't know what's happening here - would appreciate any ideas.

thanks
rowan

I think I may have fixed this problem by adding 'autocommit = true' to postgres's .conf file.

Now I have a new error at the same step -

[postgres@localhost pgsql]$ createlang plpgsql template1
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error

From a scan of the archives it appears that this error isn't all that uncommon.

cheers
Rowan

I think it means postgres isn't running, or it isn't running on port 5432. Do a:

ps axww|grep post
to see if postmaster/postgres is running.