Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOz0K-009TAS-7O for pgsql-interfaces@arkaria.postgresql.org; Sat, 21 Dec 2024 12:54:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tOz0J-008Wwv-HJ for pgsql-interfaces@arkaria.postgresql.org; Sat, 21 Dec 2024 12:54:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOz0J-008Wwi-9s for pgsql-interfaces@lists.postgresql.org; Sat, 21 Dec 2024 12:54:47 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tOz0G-000uoU-G3 for pgsql-interfaces@postgresql.org; Sat, 21 Dec 2024 12:54:46 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5d4e2aa7ea9so5031943a12.2 for ; Sat, 21 Dec 2024 04:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734785684; x=1735390484; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=hIoD720706BKOlrJMpaHU3Gpmtq353SknTm/r4K6mvE=; b=NDQ7l80etysqQg7a0Sc6yufFqbmlafdszRyYZ1hqL0DyLna+w7H3KAILY8e4GlhGxE GLC4EOs4EX7yKCV1D4Z1pkZSXB0Er/fuOvsuwIoQagTWT3cqANg6SA8Dmm4ZOVTSz0i+ 23oNj9at3hhnJwPe3Kx3i3EYp7Bmt1ZNEo9UMnDJfRGPGr2KM5cJYG8YORbQVRxfNYhM n3Ykbu3Kj0sJc7xbNZSq4VeqM1aZWOVNJfaPJqIkzuQSlNcp5tf5DgXyIukVEdtyfvni bIk/sbfFwoHaBEo25KhgCRQt+uXRQksWxKlGNOh0azkyGhz4TEDqVZnIoafWnrBXD4t4 e/DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734785684; x=1735390484; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hIoD720706BKOlrJMpaHU3Gpmtq353SknTm/r4K6mvE=; b=RxsP5j+rnacW+C4CQ425q5MikRRduTCzQ06HaSoaq/O6lImb7QzPR5dwHEDeS05/mS X9S1Y9knHquJOKQgrhVXpc1MVCaJocnUjMcefc5YM1q74sGoO1hdSrIn20qo4IDyjQsj swhQepTIRyPLIa8c91ogmz8agYBZbcmn5pdd9FAv1lYFOnJydT3KHKwFTsLrlfcPpn8b Vh5BN9JgCRXzWyyGWuugH3YQFIpAxy7e4st18sG3+UC9j3hAgWmZZPpFGvAJ4hvWYa0+ 56tHt0IfckHN1fkaCmfCOj3vUfTYy4dXnS5iIdhuh3NxPRrYB2BIrGNNYOFu/T5+pm31 7x4A== X-Gm-Message-State: AOJu0YxOmTqOwwfYUo+po+IbQbu2wIw4pzVKHYMQ7vvDRu860FO81TU/ VAIBf7aD3SKb2XDc6NjvorcFYL+F/dsMEkXt5MXey9JgR2n1ipq9G44sSFuHPo4u2oxJfeK7cyr 3dBjtPYcMDE0BqH1BeJeC7jOCTBx5UA== X-Gm-Gg: ASbGncuWWGf4RmmMFOLmOuwDCghcRJxxuvganzzOors+tP2h37xN6+lnLRy8NoCEYLD bGYEVbTIoObPTfe8lnTWR+h1xLzSJENRvr2jmYIcTnNuk+HB17vnbsF6JGR+/mi8OQKDNsHM= X-Google-Smtp-Source: AGHT+IFFIjg5SG/XYG87zi3xNfhARMHA9tQFIagK5PgKy1Rzz8lRPzHrMKQ59vo1SQHYPBwgDUzgiSZXpzaK+LZVfwg= X-Received: by 2002:a05:6402:5109:b0:5d3:e766:6140 with SMTP id 4fb4d7f45d1cf-5d81de22cb7mr5506019a12.24.1734785683853; Sat, 21 Dec 2024 04:54:43 -0800 (PST) MIME-Version: 1.0 From: Jeroen Vermeulen Date: Sat, 21 Dec 2024 13:54:32 +0100 Message-ID: Subject: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()? To: pgsql-interfaces@postgresql.org Content-Type: multipart/alternative; boundary="00000000000072976a0629c744e9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000072976a0629c744e9 Content-Type: text/plain; charset="UTF-8" Any objections to changing these two libpq functions' PGresult* parameters to be const? So "char * PQcmdStatus(PGresult *)" would become "char *PQcmdStatus(const PGresult *)", and "char *PQcmdTuples(PGresult *)" would become "char *PQcmdTuples(const PGresult *)". Jeroen --00000000000072976a0629c744e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Any objections to changing these two libpq functions&= #39; PGresult* parameters to be const?

So "ch= ar * PQcmdStatus(PGresult *)" would become "char *PQcmdStatus(con= st PGresult *)", and "char *PQcmdTuples(PGresult *)" would b= ecome "char *PQcmdTuples(const PGresult *)".

=

Jeroen


--00000000000072976a0629c744e9--