Skip site navigation (1) Skip section navigation (2)

Why don't we allow DNS names in pg_hba.conf?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Why don't we allow DNS names in pg_hba.conf?
Date: 2006-01-01 18:30:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I was reminded of $subject by

While I haven't tried it, I suspect that allowing a DNS host name
would take little work (basically removing the AI_NUMERICHOST flag
passed to getaddrinfo in hba.c).  There was once a good reason not
to allow it: slow DNS lookups would lock up the postmaster.  But
now that we do this work in an already-forked backend, with an overall
timeout that would catch any indefinite blockage, I don't see a good
reason why we shouldn't let people use DNS names.


			regards, tom lane


pgsql-hackers by date

Next:From: Marc G. FournierDate: 2006-01-01 18:50:37
Subject: Re: Why don't we allow DNS names in pg_hba.conf?
Previous:From: Tom LaneDate: 2006-01-01 17:56:11
Subject: Re: Removing SORTFUNC_LT/REVLT

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group