-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when using specific names for tables #1124
Labels
bug
Something isn't working
Comments
@yurifari Verified -
|
@yurifari I will look into this. |
This is an interesting bug that likely goes way, way back and was just never seen. I will have a hotfix shortly. |
Thanks @jrgemignani, much appreciated! |
PR #1125 should fix this once reviewed and merged into the master. |
I will be creating PRs to apply to earlier versions to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When querying a table which is using a PostgreSQL System Information Functions and Operators name, the server hits a segmentation fault and crashes.
For example, querying a table called
user
, will result in a segmentation fault. This becauseuser
is a system function.The same behaviour will be triggered using any other system function name, e.g.:
current_user
.Workarounds
Surrounding the table name with quotes will prevent the issue from happening, e.g.:
SELECT * FROM "user"
Specifying the schema will also do the trick, e.g.:
SELECT * FROM public.user
How are you accessing AGE (Command line, driver, etc.)?
What data setup do we need to do?
docker run --rm --name age -e POSTGRES_USER=postgresUser -e POSTGRES_PASSWORD=postgresPW -e POSTGRES_DB=postgresDB apache/age
docker exec -ti age psql postgresql://postgresUser:ddpostgresPW@localhost/postgresDB
What is the command that caused the error?
Expected behavior
PostgreSQL using the Age extension should behave in the same way it does without it. It should perform the query on the
user
table.In this case in particular, since the database is empty, it should notify that the relation
user
does not exist.Environment
Additional context
Server logs:
The text was updated successfully, but these errors were encountered: