From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: sql-postgres connect using URL Date: Fri, 28 Oct 2022 13:18:57 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Rob Sargent Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 08:34:58 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooIxG-0005wV-FA for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 08:34:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooIvW-0005Zm-DU; Fri, 28 Oct 2022 02:33:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooIvQ-0005S3-JP for help-gnu-emacs@gnu.org; Fri, 28 Oct 2022 02:33:04 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooIi0-0000L3-S9 for help-gnu-emacs@gnu.org; Fri, 28 Oct 2022 02:19:15 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id z14so5621785wrn.7 for ; Thu, 27 Oct 2022 23:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3LtOQKcSmSTkyPv76JIbzzdTxW/VNRYuDoKY+fIojfQ=; b=C4ISA0GLv8dLZv4bH9u591PoRjvZ4L5cWFF4a+oqM2UR2tqfhs1MjSwNh0eWh34wzG uwrR3EexoUxvuCBL6KFIw5IaiZJ4AzAjYrTZo96eLsWiaTnMW9ZPOyFVdSmxz+rKspwl 3heTtLOhzE/z/e5bHgDdmFhkeFmW+sk7IUy7Foob0HnwM8QeYkd0q3KU9NDdVGlxsdjU +ac1x5Lugcm3roHJuJFbohe7BvxIStEV64CDwhDFQShsxEQEhaP+27ZGBSfy+jj09WLf 1h/sUxgGLpdzzesr8djsgmLJ5gsLhRM5jTnjt8l/7dt+6zpTfYb3Iwx6RsT1jp0XJ5GH Tk7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3LtOQKcSmSTkyPv76JIbzzdTxW/VNRYuDoKY+fIojfQ=; b=aB8UHv5vu1Pysf0h0D3E440vN20+GhOpGPxWXj5KtfEBCKFURGvDQLHR1kEgl+s0y4 9mG7FpG7lL48Rmr8cC4BLbf1dXFDoR5OpFp+O/s06r4lSonNpVX0+IyJz1Qq+SsLnhcj Zqc3zNh7o1TROmNtMPO9NiBz0gyNI4+c4u9rAX2aEuZppnEK7P6LJcr0fvhXa1Fc39p7 Ag37MFW+lVo8+QJGxTrBfBaoBLpaFfonFH0s9O+FB7Hvmgr2YL+PG0d808H7r87XlVdg qLYsgNAbJLvgWjeuAd5kWcpL4sz8xMzYtt9y25G+Uql9rrXfGtakH69AGD1mLtmqi4th 6y/A== X-Gm-Message-State: ACrzQf10KbwqJX+uO3imKxoJ85ruKIdoaW5VCNC8uv0upI11O1s18rAY SH1CsmMEaAC5oD0LQ/aq7GB8D6ejoYzwgKA4IFM= X-Google-Smtp-Source: AMsMyM7VYa+tgUhSp1d4rFBi20DYx415GVCLd/3mfgaZwo5SYReVpJS6W7UjjT/W+sBKbf+bP7jezczQiuL58zGedxk= X-Received: by 2002:adf:e609:0:b0:235:f4e6:c7c1 with SMTP id p9-20020adfe609000000b00235f4e6c7c1mr27795237wrm.217.1666937949615; Thu, 27 Oct 2022 23:19:09 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140453 Archived-At: On Fri, 28 Oct 2022 at 11:46, Rob Sargent wrote: > This clearly works from the command line: > > psql postgresql://postgres@csgsdb/postgres?&keepalives_idle=3D60&keep= alives_interval=3D30&keepalives_count=3D10 If you ran literally this without quoting or escaping the &s, I don=E2=80= =99t see how it could work. Here, you run four commands: * =E2=80=98psql postgresql://postgres@csgsdb/postgres?=E2=80=99 in backgrou= nd * empty command with environment variable =E2=80=98keepalives_idle=E2=80=99= set to =E2=80=9860=E2=80=99, in background * empty command with environment variable =E2=80=98keepalives_interval=E2= =80=99 set to =E2=80=9830=E2=80=99, in background * empty command with environment variable =E2=80=98keepalives_count=E2=80= =99 set to =E2=80=9810=E2=80=99 The last three have no effect and complete immediately. The first one runs without any keepalive-related settings, and you can=E2=80=99t interact with it because it=E2=80=99s in background.