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 1lJan4-0006yL-FV for psycopg@arkaria.postgresql.org; Tue, 09 Mar 2021 11:44:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJan3-00014e-DR for psycopg@arkaria.postgresql.org; Tue, 09 Mar 2021 11:44:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJan3-00014W-5U for psycopg@lists.postgresql.org; Tue, 09 Mar 2021 11:44:41 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lJan1-0001dx-46 for psycopg@postgresql.org; Tue, 09 Mar 2021 11:44:40 +0000 Received: by mail-lf1-x12e.google.com with SMTP id p21so26483292lfu.11 for ; Tue, 09 Mar 2021 03:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9x5R+kr7bNB3dIZgb/0pyGGsto0O3IWnBq4XvVRU0kA=; b=scpJKdlpgSg2tWdbaWgPXn5h0TNAbP+XIEnHPZ797/0t8st9VTKkk5r4xU256vAaOa EZm7heuW6fSjwHgdb8rOtO9SJahsovCwwG8flao0v/XZWin0stf5ZlMWPJ4dtDTorvgY 5vHV1GCNDrCCzLYdDso+NWf9Z79T68TSY8/0f+PFCyDvd4PrJ7I60z4jSvYHal9mk9Wm 9l1Ius9C/3IEF5r66MaEfxTspHd1WJyZn51euSoN+fc8/8hkjp/KSatn0bfJlW7pk4q9 vQQNFbF9+Ku2oKx7ZGTosnVlCEdZr3xrU9RO/QP5bIDJjadBHOEwZAeqaQCb6bsJIdya f+6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9x5R+kr7bNB3dIZgb/0pyGGsto0O3IWnBq4XvVRU0kA=; b=Rfyde9KUlNfApMAM71VmbJhsbEvohBkbMc/NKOO54y7H2rvsWXERKLR2yGL3LUDNVA O6cUHP2qqMNJAg0rb1mwIksgZ7ZjEFAT/koUIfdrN1hWHcqoCTQ4c3t7BwSki90/h07O C9eoIjagTzE+4tY4PV9AE1FNsAa0ozLVwEayKM2+G8mvHG9feYv2LT8dOyh53SPPvVBP tJ7bJ6iDsG1SEdIwl3nf5Q+ByF1Pg9ruxbM66VQwx7tpflJ2oDYPFY4/dQFTmOJHOSN1 qTC2hlOwe+janBiqmY4uNw/FfH7I4qYadQ3fb8xdecOPi1unBv7mE8+gi5S/a+olQMX+ jmQw== X-Gm-Message-State: AOAM530VHdQ6yVBvF9fQHvC9L/20Ah7Cej9AG1gOXRD87OMaD8ZkGvv+ 9yJvs+br/jUpCP/blKyL6AxfLkKtXOz+yeazJVQ= X-Google-Smtp-Source: ABdhPJzCwm0B3zhwcpkOUewkABN2GDivep0Zn81j0qKjbsiwzNgfl9e7p5aicy7XkCXxpJIx6Or14AZVVV+y79Hwyzs= X-Received: by 2002:a05:6512:3996:: with SMTP id j22mr12172417lfu.515.1615290277156; Tue, 09 Mar 2021 03:44:37 -0800 (PST) MIME-Version: 1.0 References: <20210309104530.GN11758@artax.karlin.mff.cuni.cz> <20210309110619.GO11758@artax.karlin.mff.cuni.cz> In-Reply-To: <20210309110619.GO11758@artax.karlin.mff.cuni.cz> From: Daniele Varrazzo Date: Tue, 9 Mar 2021 12:44:27 +0100 Message-ID: Subject: Re: connect using env. variables To: Hans Ginzel Cc: Sebastiaan Mannem , psycopg@postgresql.org Content-Type: multipart/alternative; boundary="0000000000002ddc9b05bd1913ac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002ddc9b05bd1913ac Content-Type: text/plain; charset="UTF-8" On Tue, 9 Mar 2021, 12:06 Hans Ginzel, wrote: > Empty string does not work for **parse_dsn(), see example below. > It does: connect("", **parse_dsn()) -- Daniele --0000000000002ddc9b05bd1913ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, 9 Mar 2021, 12:06 Hans Ginzel, <hans@matfyz.cz> wrote:
Empty string does not work for **parse_dsn(), see example= below.

It does: connect("", **parse_dsn())

-- Daniele
--0000000000002ddc9b05bd1913ac--