]> granicus.if.org Git - postgresql/commit
> I needed to do that for the web database that I'm setting up. We
authorBruce Momjian <bruce@momjian.us>
Sat, 13 Jun 1998 04:27:18 +0000 (04:27 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 13 Jun 1998 04:27:18 +0000 (04:27 +0000)
commit3f372ee6b3d8a92921d6f81fd64918189f55f987
tree86e711cf2ae2af087925bf789bdc1492711a8241
parentd939f60ca7b7cdb8397b96ca1769e30b4159f2c0
> 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.
src/backend/libpq/auth.c
src/backend/libpq/hba.c
src/backend/libpq/pg_hba.conf.sample
src/backend/parser/gram.c
src/include/libpq/hba.h