RDS: permission denied for relation spatial_ref_sys when copying
-
06-02-2021 - |
Question
I am copying tables using ogr2ogr from Oracle to PostGIS. When I run try to load these I get,
ERROR 1: ERROR: permission denied for relation spatial_ref_sys when copying <table>@AWS
Solution
This error is a result of you not having access on that view. What you need to run to fix the permissions is
ALTER TABLE public.spatial_ref_sys OWNER TO rds_superuser;
GRANT SELECT, INSERT ON TABLE public.spatial_ref_sys TO public;
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange