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 1sc6jy-003yFM-Mq for pgsql-general@arkaria.postgresql.org; Thu, 08 Aug 2024 17:15:54 +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 1sc6jw-00FYTN-W0 for pgsql-general@arkaria.postgresql.org; Thu, 08 Aug 2024 17:15:52 +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 1sc6jw-00FYTF-H2 for pgsql-general@lists.postgresql.org; Thu, 08 Aug 2024 17:15:52 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sc6ju-003pYN-5C for pgsql-general@postgresql.org; Thu, 08 Aug 2024 17:15:51 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5b391c8abd7so1424001a12.2 for ; Thu, 08 Aug 2024 10:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildtrue-io.20230601.gappssmtp.com; s=20230601; t=1723137349; x=1723742149; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ffL67itLpO20WsKjBQOTrILeqGb48fS/iUwixEhCNaQ=; b=w3Xd73kugDokhEUt8GRw99t9J5VM+rRf7jmwDLTZp90w09ggmF05aEwIz20fhHEYPZ DzWWx/YLV0bMCqiI4aWgTG9pQNO4p0Y9CK7RmD36It1YJcaydCkZwPMu6rfeadGsCzcW Z8r+dyIZEhPAF8rbwI6lrEmiu9LaUMeuW7XRu2lguSMCxXMj+JLcHFR1AFNO+dp3moc6 ZA4lnan5tCcc1D9jh2as9Nb+cC8hOK3QOSkkVo6YUzJi2QTSQSWjIEhe1ObUj9soMVO0 tZSyDDxOLQCrNyB73uKKOC9R3Mi3tIA9Jwz9lllzk98Fve9IEJnAqkNZgbtFyNPCXLvE zowQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723137349; x=1723742149; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ffL67itLpO20WsKjBQOTrILeqGb48fS/iUwixEhCNaQ=; b=NlkhUyP1OarWja7l1zVf1R10nYAv0K1kVZpUSRJP8dBgtOonrj+SHH8VYcI0RtGAw2 MCPUC3+YX55cHEcfvlQkjCrG6Tq3/muTc3GKtk77s5YqNqDtGNwmcFyNXYrkKe5OapAe j7svu8g/qTiq9N9uWO3Nk99Wj3EOx9/zkhP3i/9Q67zzub2pffI+jq6sbF+Bi9vw3c4X 7A20LKs0AtvuP/CFVg8TcFjTww1szAgXJbw/1d/rkfiqSvvfPCEBjnF2jR0OpydtDDKL 3wXdsh+KRhdwY3XyDM+pMumUFqHl+B3EtLZSRIFiteMBjwSE9ZpQZnO/Y6X/QUP7yXy1 sRhg== X-Gm-Message-State: AOJu0Yxx83PLMvpLmTspekYpiyZdSZg0yHfhG2JPE1VS/8cot2msDgUd wI94Z0ofRa6lD2Z2y0qGS6xaGCFPBY5iqpWWWz4qfLRE21RXAymJqqVVM902yfcy2IjF9SUKIRH Y9l+JMv7Fibcc0rI1hysylksJhCRTAXiygLyPjLvDCN3W8IME6Ws= X-Google-Smtp-Source: AGHT+IGVzvXah/9jSVI2/levIQU3gGJz5x8jQXmGSs8bZvT//UbPVABF3oZT+9RFaWBtRGoynUrXlRSxk2p1qZARKyk= X-Received: by 2002:a05:6402:90b:b0:5bb:9b09:8c78 with SMTP id 4fb4d7f45d1cf-5bbb240f1admr1814544a12.34.1723137348428; Thu, 08 Aug 2024 10:15:48 -0700 (PDT) MIME-Version: 1.0 From: James Creasy Date: Thu, 8 Aug 2024 10:15:33 -0700 Message-ID: Subject: Debugging set up for Postgres? To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="0000000000008d7df1061f2f2d1f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008d7df1061f2f2d1f Content-Type: text/plain; charset="UTF-8" Hi all, We've spent about 12 hours trying to set up a working debugger for psql functions without success, trying both PGAdmin 4 v8.3 and DBeaver. The online searches turn up multiple instructions for Postgres 12 or older, however we are using 16. Our extensions include PostGIS and supporting extensions like SFCGAL. We can get the PGAdmin debugger to stop at a breakpoint, but as soon as it exits a function, PGAdmin crashes ("error when executing continue") and has to be restarted. We also tried direct debugging, but the inputs to our functions are often json objects, and there isn't a way to paste such an object into the Value field. My question is: is there a way to effectively step debug psql functions in Postgres 16 and how? Thanks for reading, James --0000000000008d7df1061f2f2d1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

We've spent about 12 hours = trying to set up a working debugger for psql functions without success, try= ing both PGAdmin 4 v8.3 and DBeaver.=C2=A0

The onl= ine searches turn up multiple instructions for Postgres 12 or older, howeve= r we are using 16. Our extensions include PostGIS and supporting extensions= like SFCGAL.=C2=A0

We can get the PGAdmin debugge= r to stop at a breakpoint, but as soon as it exits a function, PGAdmin cras= hes ("error when executing continue") and has to be restarted.=C2= =A0

We also tried direct debugging, but the inputs= to our functions are often json objects, and there isn't a way to past= e such an object into the Value field.

My question= is: is there a way to effectively step debug psql functions in Postgres 16= and how?=C2=A0

Thanks for reading,

=
James
--0000000000008d7df1061f2f2d1f--