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

Re: control pg_hba.conf via SQL

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Cc: BERTHOULE Emmanuel <pgdev(at)manberth(dot)homeip(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: control pg_hba.conf via SQL
Date: 2006-03-29 21:41:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
ISTM that the first requirement is for a sane API that will handle the 
fact that HBA lines are ordered. Persistence in itself shouldn't be a 
big problem - we already do that with some shared tables, iirc.

so we might have some functions like:

  insert_hba_rule(at_position int, connection_type text, username text, 
dbname text, cidr_host text, method text)
  move_hba_rule(from_position int, to_position int)
  delete_hba_rule(at_position int)

Inventing new SQL syntax might make things a bit tougher.



Jonah H. Harris wrote:
> I'd like to expand this idea with this TODO item.  If this is already
> on the TODO, please disregard.  I'm thinking something like the
> following:
> Enable the alteration and persistence of postgresql.conf and
> pg_hba.conf configuration parameters via SQL.
> On 3/29/06, BERTHOULE Emmanuel <pgdev(at)manberth(dot)homeip(dot)net> wrote:
>> Hi all,
>> i would like to work on control setting pg_hba.conf via SQL....( cf TODO
>> List ), and i would know if the pg_hda.conf must be replaced by pg_hba
>> table ?

In response to


pgsql-hackers by date

Next:From: Jonah H. HarrisDate: 2006-03-29 21:43:55
Subject: Re: control pg_hba.conf via SQL
Previous:From: Jonah H. HarrisDate: 2006-03-29 21:20:07
Subject: Re: control pg_hba.conf via SQL

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