Changing access permissions without re-starting the database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carlos

    #1

    Changing access permissions without re-starting the database

    Hi Forum,

    Is there a way to change the database access permissions for different IP
    addresses without having to re-start PostgreSQL? I often want to preclude
    all IP address but one from accessing the database. Currently, I change the
    pg_hba.conf file and re-start the database but I would like to be able to do
    the same thing without having to re-start.



    Thanks in advance for your response


  • Michael Glaesemann

    #2
    Re: Changing access permissions without re-starting the database


    On Oct 27, 2004, at 9:23 PM, Carlos wrote:
    [color=blue]
    > PostgreSQL?  I often want to preclude all IP address but one from
    > accessing the database.  Currently, I change the pg_hba.conf file and
    > re-start the database but I would like to be able to do the same thing
    > without having to re-start.[/color]

    Try pg_ctl reload instead of pg_ctl restart

    Michael Glaesemann
    grzm myrealbox com


    ---------------------------(end of broadcast)---------------------------
    TIP 1: subscribe and unsubscribe commands go to majordomo@postg resql.org

    Comment

    • Carlos Oliva

      #3
      Re: Changing access permissions without re-starting the database

      Thank you Michael. This should work

      -----Original Message-----
      From: pgsql-general-owner@postgresq l.org
      [mailto:pgsql-general-owner@postgresq l.org] On Behalf Of Michael Glaesemann
      Sent: Wednesday, October 27, 2004 9:27 AM
      To: Carlos
      Cc: 'pgsql-general@postgre sql.org'
      Subject: Re: [GENERAL] Changing access permissions without re-starting the
      database


      On Oct 27, 2004, at 9:23 PM, Carlos wrote:
      [color=blue]
      > PostgreSQL?  I often want to preclude all IP address but one from
      > accessing the database.  Currently, I change the pg_hba.conf file and
      > re-start the database but I would like to be able to do the same thing
      > without having to re-start.[/color]

      Try pg_ctl reload instead of pg_ctl restart

      Michael Glaesemann
      grzm myrealbox com


      ---------------------------(end of broadcast)---------------------------
      TIP 1: subscribe and unsubscribe commands go to majordomo@postg resql.org


      ---------------------------(end of broadcast)---------------------------
      TIP 6: Have you searched our list archives?



      Comment

      Working...