Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewwjB-00007f-4C for pgsql-general@arkaria.postgresql.org; Fri, 16 Mar 2018 21:17:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewwj9-0007DA-75 for pgsql-general@arkaria.postgresql.org; Fri, 16 Mar 2018 21:17:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewwj8-0007Cj-CJ for pgsql-general@lists.postgresql.org; Fri, 16 Mar 2018 21:17:27 +0000 Received: from biz170.inmotionhosting.com ([192.249.112.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewwj4-0006vo-UN for pgsql-general@lists.postgresql.org; Fri, 16 Mar 2018 21:17:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=victoriasjourney.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Reply-To:References:In-Reply-To:Message-ID:Subject:Cc:To:From: Date:Sender:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9NrLs/PvW0vLY0+8FEhJ0aYDERYXhjqQFLt7pNzVFC4=; b=AdDFkbhcoPRIlfOGGAUklfKRV6 a5jbLT0oj+JPIVsrPymfLtsI1OHlm9rdHCd1mPQ5+PLy9y1pvpxc+St6jGLOzccmIfyzkYlOrc4wB ze+q9WdNy9IfC0xkUqkMuFqPzVaSsinqDfG0RHzgSoWwqGsF+6GueuxNO2a46P7/AiW3LFTtgelvw cPPARsuqIafiEQX1YHabMfYn1yMgAa3Cmn3shQfdPc+S1xg4H3zMUlJBsX9p9MUkot9Nh+fPGZlCb ozz/N0q86nSX5LH9XLcJA6sShDsaK2QYkc0h60n3GOnFe5JzhVQ4+kAnBXEul7BR1YQeY/Pca9aUN OiRfyx5Q==; Received: from [205.250.196.230] (port=36972 helo=localhost.localdomain) by biz170.inmotionhosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1ewwip-002x3b-UK; Fri, 16 Mar 2018 14:17:21 -0700 Date: Fri, 16 Mar 2018 14:17:07 -0700 From: "Victoria Stuart (VictoriasJourney.com)" To: "pgsql-general@lists.postgresql.org" Cc: mail@VictoriasJourney.com Subject: Re: Nvim as external editor in psql as Postgres root user - .vimrc (environment?) issue Message-ID: <20180316141707.1764d238@VictoriasJourney.com> In-Reply-To: <155e58d8-6fde-727c-4569-d4f23468c592@aklaver.com> References: <20180316104746.1e23e682@gmail.com> <423630eb-637d-8158-3325-ee036910b2c6@aklaver.com> <20180316110517.221f9c7f@gmail.com> <20180316130654.650599b5@gmail.com> <155e58d8-6fde-727c-4569-d4f23468c592@aklaver.com> Reply-To: mail@VictoriasJourney.com Organization: VictoriasJourney.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biz170.inmotionhosting.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - VictoriasJourney.com X-Get-Message-Sender-Via: biz170.inmotionhosting.com: authenticated_id: mail@victoriasjourney.com X-Authenticated-Sender: biz170.inmotionhosting.com: mail@victoriasjourney.com X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk @Adrian: Good point!! ;-) When I re-installed postgres some months ago, I basically followed https://wiki.archlinux.org/index.php/PostgreSQL =20 https://serverfault.com/questions/601140/whats-the-difference-between-sud= o-su-postgres-and-sudo-u-postgres HOWEVER, as you note/allude, I tried this: [victoria@victoria ~]$ pwd /home/victoria [victoria@victoria ~]$ createuser -s -U postgres --interactive Enter name of role to add: victoria createuser: creation of new role failed: ERROR: role "victoria" alread= y exists [victoria@victoria ~]$ createdb metab_test createdb: database creation failed: ERROR: database "metab_test" alrea= dy exists [victoria@victoria ~]$ dropdb metab_test [victoria@victoria ~]$ createdb metab_test [victoria@victoria ~]$ psql -d metab_test -U victoria psql (10.2) Type "help" for help. [metab_test]# \l List of databases =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=AC=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=AC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=AC=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=AC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=AC=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 =E2=94=82 Name =E2=94=82 Owner =E2=94=82 Encoding =E2=94=82 = Collate =E2=94=82 Ctype =E2=94=82 Access privileges =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=BC=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=BC=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=A4 =E2=94=82 metab =E2=94=82 postgres =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =E2=94=82 =E2=94=82 metab_test =E2=94=82 victoria =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =E2=94=82 =E2=94=82 metabolicdb =E2=94=82 metabolic =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =E2=94=82 =E2=94=82 postgres =E2=94=82 postgres =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =E2=94=82 =E2=94=82 template0 =E2=94=82 postgres =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =3Dc/postgres =E2=86=B5= =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 postgres=3DCTc/postgres =E2=94=82 =E2=94=82 template1 =E2=94=82 postgres =E2=94=82 UTF8 =E2=94=82 en= _US.UTF-8 =E2=94=82 en_US.UTF-8 =E2=94=82 =3Dc/postgres =E2=86=B5= =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 postgres=3DCTc/postgres =E2=94=82 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=98 [metab_test]# \c metab You are now connected to database "metab" as user "victoria". [metab]# \d List of relations =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=AC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=AC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=AC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 =E2=94=82 Schema =E2=94=82 Name =E2=94=82 Type= =E2=94=82 Owner =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=A4 =E2=94=82 public =E2=94=82 bioent =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 bioent_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 enzyme_synonyms =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 enzyme_synonyms_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 glycolysis_enzymes =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 glycolysis_enzymes_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 glycolysis_metabolites =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 glycolysis_metabolites_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 metabolite_synonyms =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 metabolite_synonyms_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 metabolites =E2=94=82 table = =E2=94=82 victoria =E2=94=82 =E2=94=82 public =E2=94=82 metabolites_id_seq =E2=94=82 sequen= ce =E2=94=82 victoria =E2=94=82 =E2=94=82 public =E2=94=82 relations =E2=94=82 table = =E2=94=82 postgres =E2=94=82 =E2=94=82 public =E2=94=82 relations_id_seq =E2=94=82 sequen= ce =E2=94=82 postgres =E2=94=82 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=98 [metab]# \e ## launches external editor (neovim), c. victoria's setti= ngs ... [metab]# \q [victoria@victoria ~]$=20 Of course (in Arch Linux), the postgres service enabled and running: sudo systemctl enable postgresql=20 sudo systemctl enable postgresql Thank you very much for your comment; this greatly simplifies things! I guess I just needed a nudge in that direction. Much appreciated! :-D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D ----- Original Message(s): ----- Date: 2018 Mar 16 (Fri) 13:33 From: Adrian ... Subject: Re: Nvim as external editor in psql as Postgres root user - .vimrc= (environment?) issue On 03/16/2018 01:06 PM, Victoria wrote: > Ok, here is a clumsy solution. =20 Still not sure why you want to run as the system postgres user. The=20 system user postgres is not the same as the Postgres database user=20 postgres. It is just convention that the system user that Postgres runs=20 as is called postgres. If you want to work in Postgres as the database=20 user postgres you just need to supply -U postgres to the client(psql in=20 this case). You can do that from your home account(victoria) without all=20 the contortions below:) [snip: my previous post / "solution"] --=20 Adrian Klaver adrian.klaver@aklaver.com