[FEATURE] Don't clash with Postgres keyword User #2695

Open
opened 2026-03-13 10:13:44 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nicosql on GitHub (Jan 12, 2026).

Is this suited for github?

  • Yes, this is suited for github

It seems like a big miss to have a default table name clash with a keyword from the most popular open source database platform (Postgres).

Describe the solution you'd like

Please consider discontinuing the use of user as a default table name that is so integral to the entire lib.

Describe alternatives you've considered

Currently sucking it up with use of quotes. Acknowledge it's more a philosophical issue than one that's plagued production but still... seems like a worthy blemish worth resurfacing.

Additional context

No response

Originally created by @nicosql on GitHub (Jan 12, 2026). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. It seems like a big miss to have a default table name clash with a keyword from the most popular open source database platform (Postgres). ### Describe the solution you'd like Please consider discontinuing the use of `user` as a default table name that is so integral to the entire lib. ### Describe alternatives you've considered Currently sucking it up with use of quotes. Acknowledge it's more a philosophical issue than one that's plagued production but still... seems like a worthy blemish worth resurfacing. ### Additional context _No response_
GiteaMirror added the enhancement label 2026-03-13 10:13:44 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Jan 12, 2026):

It seems you're raising a concern about the use of "user" as a default table name in Better Auth, which may conflict with Postgres keywords. This is indeed a relevant issue as it can lead to complications when working with PostgreSQL as it has "user" as a reserved keyword.

The request to change this default table name has been noted in the community, and while there isn't a definitive resolution at the moment, it has been acknowledged as a worthy point for consideration. Users are currently working around this by using quotes around the table name, but it's recognized that this is more of a philosophical issue rather than an immediate blocking bug for production.

If you wish to delve deeper into this matter or propose further ideas, feel free to tag the Better Auth team members, @bekacru or @ping__ for direct input and insights on this topic.

Is there a specific aspect of authentication or database management you're currently facing that I can assist with?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

@better-auth-agent[bot] commented on GitHub (Jan 12, 2026): It seems you're raising a concern about the use of "user" as a default table name in Better Auth, which may conflict with Postgres keywords. This is indeed a relevant issue as it can lead to complications when working with PostgreSQL as it has "user" as a reserved keyword. The request to change this default table name has been noted in the community, and while there isn't a definitive resolution at the moment, it has been acknowledged as a worthy point for consideration. Users are currently working around this by using quotes around the table name, but it's recognized that this is more of a philosophical issue rather than an immediate blocking bug for production. If you wish to delve deeper into this matter or propose further ideas, feel free to tag the Better Auth team members, @bekacru or @ping__ for direct input and insights on this topic. Is there a specific aspect of authentication or database management you're currently facing that I can assist with? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2695