> I needed to do that for the web database that I'm setting up. We
have > 20000 users and each (potentially) needs a separate database which is > only accessible to them. Rather than having 20000 lines in pg_hba.conf, > I've patched Postgres so that the special token "sameuser" in the > database field of pg_hba.conf allows access only to the username which > is connecting.
Showing
- src/backend/libpq/auth.c 3 additions, 3 deletionssrc/backend/libpq/auth.c
- src/backend/libpq/hba.c 17 additions, 15 deletionssrc/backend/libpq/hba.c
- src/backend/libpq/pg_hba.conf.sample 3 additions, 2 deletionssrc/backend/libpq/pg_hba.conf.sample
- src/backend/parser/gram.c 1 addition, 1 deletionsrc/backend/parser/gram.c
- src/include/libpq/hba.h 3 additions, 3 deletionssrc/include/libpq/hba.h
Loading
Please register or sign in to comment