Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjTnQ-0007tO-Ps for pgsql-general@arkaria.postgresql.org; Thu, 11 Jun 2020 20:27:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jjTnP-0005ja-Ly for pgsql-general@arkaria.postgresql.org; Thu, 11 Jun 2020 20:27:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjTnP-0005jT-Du for pgsql-general@lists.postgresql.org; Thu, 11 Jun 2020 20:27:31 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jjTnM-0006L0-KF for pgsql-general@postgresql.org; Thu, 11 Jun 2020 20:27:30 +0000 Received: by mail-qt1-x843.google.com with SMTP id e16so5651855qtg.0 for ; Thu, 11 Jun 2020 13:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=LisXcK0Cj5+gEJyEGtYMahwXHPjN4Z1Z1AQiqELHsSY=; b=eLLR76/riamtRUvjQLhjHcem0El9Wbs1dGprgr6EjnFF7tcuNlcVJit6hOmFd+zZDf bgHzpPPA1uBPPCv3e2Nf3i0aq7YWVM50brK2p4hmONCoBUnryzEIn++2HvQIn+mPfLR+ xBce3P/eMg7PTdiCq+7IGIcxsgAts2sBnkZw3Kat/sAA2Brdbn2v95e3mxOrBKg0D+nl JYkNpjKxyBV55XwcUhCxNp+XesyrXIUjo5CpNqf6h5rXBa/EJ91TTH7tv5RWQnZket// VS5M3zcgpqrNggnbt3Abmu7LmCPEbCXQ24bBaQ7ULDcvGAqnbg55ZGeIeHsf64QONLSW gt1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LisXcK0Cj5+gEJyEGtYMahwXHPjN4Z1Z1AQiqELHsSY=; b=eCRLdB9rVo3/Iv8az3tPvquQCvVjfKtypOQLSQzRCjv0dH92bL8h+BEvEoS/1wh+0h KAKcWYQ1ClZe6JalbCLacC7cYoFgX7jIUjhx+Dg8BR4PHIlSo/OV14c+XIT3ALmCTgCp 5+jfqX32ufD6/lYepX9IlSQlN5otl8vf/ayLzGSJiBXjwydtHuRCOV8LnFxkydLe7/LC HQrc8wnLLevX2hQ1eqECIe6SQJ1n5HG2SEfkqS2q1KpnjsTrDwYUavDwuaq+pqtixTlR fI4ZgaPJipDPj3loQ52bM0YHjbYvAC7cpG/7RH1bbGKrNR3qCBCkGRjWqcs+Z6G0i9vZ y1pw== X-Gm-Message-State: AOAM532uou1n15xQK8snb7dJQnpF2Yd9d9i4kOfRr1k6Cma+OjSHTsw+ xumsVDMq+vOmOLqslelSUwGaBQ== X-Google-Smtp-Source: ABdhPJwi3Gjpr3ewyy7PSPkrxBgxOazxuGLMDNAVSl45Y1Ogjvon6hsOsCmMfiFUWPGbzJrYHCCHgA== X-Received: by 2002:ac8:1858:: with SMTP id n24mr10421847qtk.189.1591907247429; Thu, 11 Jun 2020 13:27:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id g47sm3274178qtk.53.2020.06.11.13.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 13:27:26 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1FCDC3006F2; Thu, 11 Jun 2020 16:27:25 -0400 (-04) Date: Thu, 11 Jun 2020 16:27:25 -0400 From: Alvaro Herrera To: Caleb Cushing Cc: "pgsql-general@postgresql.org >> PG-General Mailing List" Subject: Re: suggestion/question pgpass alias? Message-ID: <20200611202725.GA2830@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-11, Caleb Cushing wrote: > is it possible to support an alias for a pgpassfile? what I'm looking to do > is > > psql --alias company -h localhost > > and not type anything else and get a shell. if this is not possible could > this be added? I think what you want is a "service" file. See https://www.postgresql.org/docs/current/libpq-pgservice.html -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services