forked from psycopg/psycopg
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Description:
When running tests/types/test_range.py as the root user, multiple tests fail with InsufficientPrivilege errors related to the testrange function. The error explicitly states:gaussdb.errors.InsufficientPrivilege: Must be owner of function testrange.
ERROR tests/types/test_range.py::test_fetch_info_async[asyncio-testrange-text] - gaussdb.errors.InsufficientPrivilege: Must be owner of function testrange.
...
Expected Behavior:
tests pass.
How to reproduce it:
pytest --durations=0 -s -v tests/types/test_range.pyAdditional information:
The tests only succeed after explicitly changing the owner of the relevant functions:
ALTER FUNCTION testschema.testrange(double precision, double precision) OWNER TO root;
ALTER FUNCTION testschema.testrange(double precision, double precision, text) OWNER TO root;
ALTER FUNCTION public.testrange(text, text, text) OWNER TO root;
ALTER FUNCTION public.testrange(text, text) OWNER TO root;Even as root, the default function ownership prevents the tests from running.
Environment:
- OS: Huawei Cloud EulerOS 2.0
- Database: GaussDB
Metadata
Metadata
Assignees
Labels
No labels