Re: Transaction issue

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transaction issue
Date: 2024-06-20 00:27:03
Message-ID: CAKFQuwZP6gsWC9UZroWQZK51g0cbd7A5BCZ8kTOAEsag+btaLQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 19, 2024 at 5:16 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

>
> >
> > You hallucinated a dash in front of the bustrac. psql bustract is a
> > perfectly valid psql command. User gets inferred from the OS user.
>
> As in?:
>
> psql -d test -U postgres bustrac
>

Well no, that is the specification of -U is the exact opposite of "user
gets inferred from the OS user".

psql: warning: extra command-line argument "bustrac" ignored
> psql (16.3 (Ubuntu 16.3-1.pgdg22.04+1), server 15.7 (Ubuntu
> 15.7-1.pgdg22.04+1))
> Type "help" for help.
>
> test=#
>
> In which case bustrac is ignored.
>
>
You are missing the fact that bustrac is the name of the database so when
you specify the -d option you are being redundant and being told that by
psql.

psql [option...] [dbname [username]]

You like to specify both dbname and username via options but as shown one
can also use arguments.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-06-20 00:30:34 Re: Transaction issue
Previous Message Adrian Klaver 2024-06-20 00:18:46 Re: Transaction issue