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 1lE17I-0000L5-2x for pgsql-general@arkaria.postgresql.org; Mon, 22 Feb 2021 02:38: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 1lE17F-0004Hu-Oi for pgsql-general@arkaria.postgresql.org; Mon, 22 Feb 2021 02:38:29 +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 1lE17F-0004Hn-EG for pgsql-general@lists.postgresql.org; Mon, 22 Feb 2021 02:38:29 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lE178-0005B7-Vb for pgsql-general@lists.postgresql.org; Mon, 22 Feb 2021 02:38:28 +0000 Received: by mail-ot1-x335.google.com with SMTP id s107so10675747otb.8 for ; Sun, 21 Feb 2021 18:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=fwTqESZ7F+IPL9KKo7+OyWzSBC2eiT/pWKnuKC0BHHw=; b=UHzuWHf6gBF+LDJ6UmRhJWqcOAZdzj6tyvHK/YeErZQwoGkXY4xu4CIdi1Do0nZbgb VKjoNppwAcLKaKGVbBivZ/AurPsiNP8dsHk1XpLG24NEHA2KJioHUMh8NTmDDlGwZiCn WC2TXqohRRt1uYWHxR7+Y5x7WH0nDSyfHQQslmM1nr7QJz5BTzWG7JpIXUz2J5elq5tE RVZj1gwbmpFwDffZ5h7qwtaYKHSjVNnNtTkBj/KNpWL30zb6ck9RIIfxaj7pWtYGCDg9 623wK6Z78avvc04lugLA5MIE6r/jHlOuakm6Aw4TsVX2ROofs+wezzJtrpSjEA4q5lpO H4Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=fwTqESZ7F+IPL9KKo7+OyWzSBC2eiT/pWKnuKC0BHHw=; b=euGhYHEAg19Z5ZPcWmu5Ue0+BjNgpK37gF2wp3zzRk7ore0W9MYFBc98StmbDIEKo4 0X9M/+sxxV1iyJO0k7Nj2raYTN2IkYEZNNJyDw/8rY7OFAzbX7QqytpilG0Zgq82o12Y q5TOxGkIvwh1AdoWQl34E/aZSO/PdRi5eYU8jUK7Gf9tblhORkbf14kJe64/sXeKdxwd RUGiI/9RmX1ezxtvZXMlqoXZCb14k6KnbSSjnBBQl94t4Yfn7Lg6Hnz2v6ixrsmPXip2 Vduy0zPCtwwcqKgwqJBH1pE7xphoSoX8rypXJdYH206/r8ABugl333emwLO573qpnCKX Asjw== X-Gm-Message-State: AOAM533MI08z2TGiik9JfbCGyZ0sBiGlPbDnNqt/y4KY9xEfRU4DA6Ln jxRIHRxYrNTkED39SO0brEbB/Va8334ReQ== X-Google-Smtp-Source: ABdhPJyygw1Zcry0aWAauglkqLqi/DXBzhfpkx0c7TqTRL9ns10zg0m7Yh3kjQiaiEZ7J7xwciNMUQ== X-Received: by 2002:a9d:27e3:: with SMTP id c90mr14733598otb.2.1613961501847; Sun, 21 Feb 2021 18:38:21 -0800 (PST) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id r15sm3403880otq.77.2021.02.21.18.38.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Feb 2021 18:38:21 -0800 (PST) Subject: Re: Script checking to see what database it's connected to To: Julien Rouhaud Cc: "pgsql-generallists.postgresql.org" References: <0437e8e0-5686-9a10-b204-0b9df86e27ef@gmail.com> <222764a0-5650-5457-e536-488861cdd666@gmail.com> From: Ron Message-ID: Date: Sun, 21 Feb 2021 20:38:20 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/21/21 7:19 PM, Julien Rouhaud wrote: [snip] > Well, the supported commands did work. You should probably look at > https://www.postgresql.org/docs/current/app-psql.html, you'd see that > "exit" is not a supported command and you should instead use \q[uit]. > I recommend looking at the semantics of \quit though, given your next > message mentioning \include. I assumed "exit" is a valid command because I do this so often in bash... :( -- Angular momentum makes the world go 'round.