theirix/json_accessors

docs typo

alx3apps opened this issue · 3 comments

This command from here doesn't work:

pgxn --pg_config <postgresql_install_dir>/bin/pg_config install json_accessors

Output will be:

pgxn: unknown command: '/opt/PostgreSQL/9.1/bin/pg_config'. See 'pgxn --help'

I think it's typo (space intead of '='') and must be:

pgxn --pg_config=<postgresql_install_dir>/bin/pg_config install json_accessors

According to http://pgxnclient.projects.postgresql.org/usage.html#pgxn-install there should be a space. On my system with pgxnclient 1.2 both variants works.

My output:

sudo pgxn --pg_config /opt/PostgreSQL/9.1/bin/pg_config install json_accessors
pgxn: unknown command: '/opt/PostgreSQL/9.1/bin/pg_config'. See 'pgxn --help'

sudo pgxn --pg_config=/opt/PostgreSQL/9.1/bin/pg_config install json_accessors
INFO: best version: json_accessors 1.3.2
INFO: saving /tmp/tmp_z6tqr/json_accessors-1.3.2.zip
INFO: unpacking: /tmp/tmp_z6tqr/json_accessors-1.3.2.zip
...
pgxn --version
pgxnclient 1.2
python -V
Python 2.6.6

Something wrong with my environment, this one works:

sudo -s
su - root
pgxn install --pg_config /opt/PostgreSQL/9.1/bin/pg_config json_accessors
INFO: best version: json_accessors 1.3.2
...