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 1mCEyc-0001So-Cd for pgsql-jdbc@arkaria.postgresql.org; Sat, 07 Aug 2021 05:34:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCEya-0006is-ED for pgsql-jdbc@arkaria.postgresql.org; Sat, 07 Aug 2021 05:34:28 +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 1mCEya-0006ij-1u for pgsql-jdbc@lists.postgresql.org; Sat, 07 Aug 2021 05:34:28 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCEyX-0003YL-Kv for pgsql-jdbc@lists.postgresql.org; Sat, 07 Aug 2021 05:34:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628314462; bh=8fKh6XRl6gO2KXklEDhIYH0oyL/CiJbgw2vTCFV32cs=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=FhPdQUuRoCTeVukbPBepz9UaZYOwJu1ruAZ0hkDTeoRxQ+aIMoOhYECwARokCvfc1 C08qrG86sNuEJ3ugaNQoYgT/3+i0qPZIxtzdqlgaJbfCmG8nHMCbAH9mLb9CmHv0y3 EyKcB4FU69KD2bSq5BzQ3yUijyPxkqOXDlpsmJc4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.20] ([83.171.175.3]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MC34h-1mI2nz2MST-00COrg for ; Sat, 07 Aug 2021 07:34:22 +0200 Subject: Re: question about sql comments To: pgsql-jdbc@lists.postgresql.org References: <1607505e-776d-0f44-9f8e-72c9f7ba1493@rentec.com> From: Thomas Kellerer Message-ID: <8ee165dd-0dd5-d85d-cc88-12210a81f38e@gmx.net> Date: Sat, 7 Aug 2021 07:34:20 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <1607505e-776d-0f44-9f8e-72c9f7ba1493@rentec.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:zz0DXuGK3SWHCa/ugBBozbeKYYbPuqAKxJxAoo0nhQTFyiA9vLy jfz7wP/6c+5Ndvn99z0C3HVPwqQ0lyRj/3KIqDNchXtOIystkiDCoMlt1WNmkF7LxPbBpou YoYtQfhbP2LrEfjudFIbPtGH4dEOoxm4CoZR94d4P03WCu8qAjAWMYfjj6A4QLViTagEiMo Ux0dmVJ8gLHEIt3p+pxbw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wBW3BzHi16M=:oCtopPlZ7UFVXT4L4MAGDR hZzKTn38Bpqv2mW5JBWGuZP6TH7ArKMn+DjrCdVwHfDbO4SihV3oqlXEQriLbuWaIzMqAGPxn ioLZJILPWtxJ2DsUkTNra9xKNMXeMBdoj7nYB4faHHHBt74Zx8lrUhShK0sA+4igrMjMeX80/ toIQzlkz7QTTgG0Sg7QkAObBu6SHXfs2jq0T6MKtGpt3N0qMTIfKAZF604up4XMWADIjMJuNt vUjgksbwpNAJC/nKdnWgXJLwFUfWWvRKt7DqeNsPUe1/MZTWoz+w0tA9dUSpHlBh4IpHobiUS TDzH/AVkCDru54pkUDjPBpTzy3TaL4H5wSFux03PJNh1MFF/HjOgsYF9bVoiNtJ4WT12Z5WtX epXIAqTxIPwClheEUJHk63f1F4VZn9dBWKlaewUHiLpzY9eQW06VCa3em/nWCb0Lyg0VD3FtV wflM3sz1HNqfeioiYFlilj+1sKynQR7iBsdasxpC10KEbfICUrfGAAIjHV3Ka0sz1XAhsMdyl pRMbFkRzljOuQXI+v9FWRPCgbdyVPjY9qLNeXYe8ffT/5Cb8rAVlsKZE2ytbnZ/SP8ieZkBl5 Aa4KJjPNj1xbTL8SN7b1v0zjStDzeFwR8DRMGrwSo+t8/6jGWVLLJQykC8St/0sqP/mbh74Bu RUzZNiAbEIm7kewZzORAynegPpVxyHyB/W8KouKDccYxkG/l3Wg5UQ8tWcLWzhJm2PBFNtRrX ysoo4IqCs9IOZfSLrvcz0Pe9itNN7S0Vsd8Jvj26i9ijZtrsaYZmZuoJG5A7Q2+kKVb5vn6MN R+/4O+LF3gFX4StYxrs5sC/e66+brFXvj79Zg4/DUIV1pIIDbG/WshhxIBbzPdKeePGeoSW4z MZoLJlVZoZDUq2lHuYeyGjSQylgpQKbpxCj5E+srQlAfTsDZYKFiJHA6ZZGGjq/wfzhn4o3yb C1CqiZ3hcSLPazOkk704i9hLT/WtkrxN8yyJGnr4cBxcFSAoGrBwkT14YpyFLZUGaHKsyufGp 3KOklx1GtRJuFWFRNSV2xmaTDWSCvmCut0/YWRQN11rg7yRPpcZ+NEPae/fAMEsWSKDnjyu9k Odu0d5+m+XmPgsne+ulq8Phgq9MJWA6SSjNlQfzbs5P7akseE61WMpEwA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alan Stange schrieb am 06.08.2021 um 22:31: > Hello all, > > In order to track down some bugs, we thought it would be useful to > append some comments to the sql being sent to postgresql like this: > =C2=A0=C2=A0=C2=A0 select foo from bar;=C2=A0 -- a comment with some me= tadata > however, the postgresql server was not including the appended comment in > the log file. The ; ends the statement, so the comment you sent actually belongs to the _next_ statement. Did you try adding the single line comment before the statement? -- a comment select foo from bar; Thomas