allowing connections from additional hosts without a restart?

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default allowing connections from additional hosts without a restart?

    Greetings,
    Is it possible to allow TCP/IP connections from additional hosts (IPs)
    without restarting postgresql?

    The issue i'm having is that i've got a postgresql-7.4.6 box that has
    a DB running on it for a j2ee based application on a separate server.
    Now i need to add an additional DB for a different server, but I can't
    afford any down time to restart postgresql for the changes in
    pg_hba.conf to take effect.

    Is there any workaround that doesn't require a restart?

    thanks!

    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    L. Friedman [email]netllama@gmail.com[/email]
    LlamaLand [url]http://netllama.linux-sxs.org[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 9: the planner will ignore your desire to choose an index scan if your
    joining column's datatypes do not match

    Lonni J Friedman Guest

  2. Similar Questions and Discussions

    1. Have to quit and restart Distiller 6 to make additional PDF's
      I must be missing something because I have tried everything to figure this one out. Never had this problem in previous versions but upgrading to 6 I...
    2. ASP Hosts
      Hello, Does anyone in the Buffalo, NY area know of a good Web Host that doesn't cost an arm and a leg that you can run ASP pages on. GoDaddy is...
    3. hosts.allow
      hi all... i have some crap in my log like: Feb 23 16:56:45 bigdaddy named: client 218.19.160.163#63869: update 'bigdaddy.com/IN' denied Feb...
    4. additional CPU
      RS6000, 7025, 6F1 AIX 4.3.3 I have just replaced 1CPU with 2CPU's. (RS64 III, 1W, 450 MHZ, 2MB L2 with RS64 IV,2-WAY SMP,8MB L2 CACHE) Are...
    5. /etc/HOSTS
      How can I find IP addresses for favorite websites to add to my HOSTS file to bypass DNS lookups?
  3. #2

    Default Re: allowing connections from additional hosts without a restart?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    You could always create and configure a new data directory, then start
    a new instance of the postmaster running on a different port. Use the
    new instance for the other client. That would separate the user
    accounts, too...

    On Jan 13, 2005, at 11:55 AM, Lonni J Friedman wrote:
    > Greetings,
    > Is it possible to allow TCP/IP connections from additional hosts (IPs)
    > without restarting postgresql?
    >
    > The issue i'm having is that i've got a postgresql-7.4.6 box that has
    > a DB running on it for a j2ee based application on a separate server.
    > Now i need to add an additional DB for a different server, but I can't
    > afford any down time to restart postgresql for the changes in
    > pg_hba.conf to take effect.
    >
    > Is there any workaround that doesn't require a restart?
    >
    > thanks!
    >
    > --
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    > L. Friedman [email]netllama@gmail.com[/email]
    > LlamaLand [url]http://netllama.linux-sxs.org[/url]
    >
    > ---------------------------(end of
    > broadcast)---------------------------
    > TIP 9: the planner will ignore your desire to choose an index scan if
    > your
    > joining column's datatypes do not match
    >
    >
    - -----------------------------------------------------------
    Frank D. Engel, Jr. <fde101@fjrhome.net>

    $ ln -s /usr/share/kjvbible /usr/manual
    $ true | cat /usr/manual | grep "John 3:16"
    John 3:16 For God so loved the world, that he gave his only begotten
    Son, that whosoever believeth in him should not perish, but have
    everlasting life.
    $
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (Darwin)

    iD8DBQFB5rcQ7aqtWrR9cZoRAmyZAJwNkk/b3QmgmKsoQpfAzdGEmhFjAwCZATtH
    M77PWcaAyj5imsfPS9nBqXw=
    =Prxi
    -----END PGP SIGNATURE-----



    __________________________________________________ _________
    $0 Web Hosting with up to 120MB web space, 1000 MB Transfer
    10 Personalized POP and Web E-mail Accounts, and much more.
    Signup at [url]www.doteasy.com[/url]


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

    [url]http://archives.postgresql.org[/url]

    Frank D. Engel, Jr. Guest

  4. #3

    Default Re: allowing connections from additional hosts without a restart?

    On Thu, Jan 13, 2005 at 08:55:08AM -0800, Lonni J Friedman wrote:
    > Is it possible to allow TCP/IP connections from additional hosts (IPs)
    > without restarting postgresql?
    "pg_ctl reload" should cause the server to re-read its configuration
    files without shutting down and restarting. See the section on
    pg_ctl in the "PostgreSQL Server Applications" part of the documentation.

    --
    Michael Fuhr
    [url]http://www.fuhr.org/~mfuhr/[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 1: subscribe and unsubscribe commands go to [email]majordomo@postgresql.org[/email]

    Michael Fuhr Guest

  5. #4

    Default Re: allowing connections from additional hosts without a restart?

    Lonni J Friedman wrote:
    > Now i need to add an additional DB for a different server, but I
    > can't afford any down time to restart postgresql for the changes in
    > pg_hba.conf to take effect.
    pg_ctl reload or (equivalently) kill -HUP

    --
    Peter Eisentraut
    [url]http://developer.postgresql.org/~petere/[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 1: subscribe and unsubscribe commands go to [email]majordomo@postgresql.org[/email]

    Peter Eisentraut Guest

  6. #5

    Default Re: allowing connections from additional hosts without a restart?

    Lonni J Friedman <netllama@gmail.com> writes:
    > Is it possible to allow TCP/IP connections from additional hosts (IPs)
    > without restarting postgresql?
    > The issue i'm having is that i've got a postgresql-7.4.6 box that has
    > a DB running on it for a j2ee based application on a separate server.
    > Now i need to add an additional DB for a different server, but I can't
    > afford any down time to restart postgresql for the changes in
    > pg_hba.conf to take effect.
    SIGHUP (a/k/a pg_ctl reload) is sufficient for editing pg_hba.conf.

    If you'd not had tcpip_socket enabled to start with, you would need a
    restart to turn that on, but as long as the socket is there you are
    good.

    regards, tom lane

    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    [url]http://www.postgresql.org/docs/faqs/FAQ.html[/url]

    Tom Lane Guest

  7. #6

    Default Re: allowing connections from additional hosts without a restart?

    I make the changes into the pg_hba.conf and do a kill -HUP 'PID' for
    postgres to reread the file. The pid number can be found in the
    ~postgres/data/postmaster.pid file

    Woody

    IGLASS Networks
    [url]www.iglass.net[/url]

    -----Original Message-----
    From: [email]pgsql-general-owner@postgresql.org[/email]
    [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Lonni J Friedman
    Sent: Thursday, January 13, 2005 11:55 AM
    To: [email]pgsql-general@postgresql.org[/email]
    Subject: [GENERAL] allowing connections from additional hosts without a
    restart?

    Greetings,
    Is it possible to allow TCP/IP connections from additional hosts (IPs)
    without restarting postgresql?

    The issue i'm having is that i've got a postgresql-7.4.6 box that has a DB
    running on it for a j2ee based application on a separate server.
    Now i need to add an additional DB for a different server, but I can't
    afford any down time to restart postgresql for the changes in pg_hba.conf to
    take effect.

    Is there any workaround that doesn't require a restart?

    thanks!

    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    L. Friedman [email]netllama@gmail.com[/email]
    LlamaLand [url]http://netllama.linux-sxs.org[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 9: the planner will ignore your desire to choose an index scan if your
    joining column's datatypes do not match



    ---------------------------(end of broadcast)---------------------------
    TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email]majordomo@postgresql.org[/email])

    Woody Woodring Guest

  8. #7

    Default Re: allowing connections from additional hosts without a restart?

    Thanks to all who responded. That works perfectly.


    On Thu, 13 Jan 2005 19:28:02 +0100, Peter Eisentraut <peter_e@gmx.net> wrote:
    > Lonni J Friedman wrote:
    > > Now i need to add an additional DB for a different server, but I
    > > can't afford any down time to restart postgresql for the changes in
    > > pg_hba.conf to take effect.
    >
    > pg_ctl reload or (equivalently) kill -HUP

    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    L. Friedman [email]netllama@gmail.com[/email]
    LlamaLand [url]http://netllama.linux-sxs.org[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 7: don't forget to increase your free space map settings

    Lonni J Friedman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139