Re: Remote Connection Help

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "Jason L(dot) Amerson" <drjason(at)alphagenius(dot)org>
Cc: 'PostgreSQL' <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Remote Connection Help
Date: 2019-11-22 15:56:41
Message-ID: e4be71a6-af70-3b74-dcb8-31016fed3b52@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/22/19 5:49 AM, Jason L. Amerson wrote:
> I am start/stopping the server by using sudo service postgresql start/stop/restart/status. When I run any of these commands, I do not get anything. No confirmation, except for

Where did the postgresql file in /etc/init.d/ come from?

Does it have something like:

# Setting environment variables for the postmaster here does not work;
please
# set them in /etc/postgresql/<version>/<cluster>/environment instead.

[ -r /usr/share/postgresql-common/init.d-functions ] || exit 0

. /usr/share/postgresql-common/init.d-functions

near the top?

the status, it does show the server is running. But otherwise, all I see
is that it just goes to a new line with no confirmation or errors.
>
> Jason L. Amerson
>
>
> -----Original Message-----
> From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> Sent: Thursday, November 21, 2019 04:53 PM
> To: Jason L. Amerson <drjason(at)alphagenius(dot)org>
> Cc: 'Steve Crawford' <scrawford(at)pinpointresearch(dot)com>; 'PostgreSQL' <pgsql-general(at)lists(dot)postgresql(dot)org>
> Subject: Re: Remote Connection Help
>
> On 11/21/19 1:14 PM, Jason L. Amerson wrote:
>> 1) I have attached a screenshot of the output of "ps ax | grep post" on the Ubuntu machine.
>>
>> 2) Since I was new to PostgreSQL, I followed a tutorial online. I did install from source which I already knew how to do. I got the source package from PostgreSQL. I basically followed these instructions:
>>
>
> Additional questions that came to mind:
>
> 1) How are you starting/stopping server?
>
> 2) What do you see on the terminal when you restart the server? I see:
>
> aklaver(at)ranger:~> sudo /etc/init.d/postgresql11 restart Restarting PostgreSQL: ok
>
>
>
> aklaver(at)ranger:~> -2019-11-21 13:49:30.104 PST-0LOG: listening on IPv6 address "::1", port 5432
>
>
> -2019-11-21 13:49:30.104 PST-0LOG: listening on IPv4 address
> "127.0.0.1", port 5432
>
>
> -2019-11-21 13:49:30.193 PST-0LOG: listening on Unix socket
> "/tmp/.s.PGSQL.5432"
>
>
> -2019-11-21 13:49:30.322 PST-0LOG: redirecting log output to logging
> collector process
>
>
> -2019-11-21 13:49:30.322 PST-0HINT: Future log output will appear in
> directory "log".
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jason L. Amerson 2019-11-22 16:27:19 RE: Remote Connection Help
Previous Message Adrian Klaver 2019-11-22 15:25:44 Re: Constants in the foreighn key constraints