Open dneufeldcu opened 4 years ago
Was getting a lot of errors trying to install psycopg2, fixed it with this command in pycharm terminal -env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install psycopg2
You can create postgres tables that allow for postgis in python code, but using the pgadmin UI for the time being
In order to use postgis extension I need to be a superuser. Getting the following error 'ERROR: permission denied to create extension "postgis" HINT: Must be superuser to create this extension.'
Tried using 'ALTER ROLE onestop SUPERUSER; ' but got the following error 'ERROR: must be superuser to alter superusers'
Found some docs suggesting to use : su postgres psql alter role user_name superuser;
alter role user_name nosuperuser;
Unsure about how to incorporate this with docker though
SOLUTION: Created credentials via helm to log into the default superuser role which is 'postgress'. Was able to use the postgis extension on tables after this.
Geometry points in postgis will be displayed as hex. To change the hex into a tuple for a viewable format, you can use the query command
Summary
Tasks
Reference