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 1oVC81-0001BX-SI for pgsql-performance@arkaria.postgresql.org; Mon, 05 Sep 2022 13:27:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oVC80-0000bI-OL for pgsql-performance@arkaria.postgresql.org; Mon, 05 Sep 2022 13:27:04 +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 1oVC80-0000b9-Aw for pgsql-performance@lists.postgresql.org; Mon, 05 Sep 2022 13:27:04 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oVC7x-0004j3-3Z for pgsql-performance@lists.postgresql.org; Mon, 05 Sep 2022 13:27:03 +0000 Received: by mail-io1-xd29.google.com with SMTP id n202so6823429iod.6 for ; Mon, 05 Sep 2022 06:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=82L4HgI98cuDiXfaLWXM3wSx/aQvckeQFes09/HYdUI=; b=xhURkxrWuqio/nVHnWLFvPahDrp3rg9/QgnwxfW87JZQlAHg8Ec2L7i3KGjB+X+R8g Scd/07NupToySLqNle/vW1duNR/1QaUtuX3Ilw5/AR9Fe+Q0Llyeh2030ZYnddgxlvnP DeRYwL0mbxr3/gxC1nQzLfvxlb9AzKTqAS426gXoBytLnlE4mRCMGMc4GdfYkvFs3HM2 2u7qWbDO2ia0WmK13SmtgbW+TFfFpppKShoKme67oWa+ToRexDP28pz7GcrYURhKbTsr RQnaFLo480Pm15aPb4kT4s8EP6o0XOEL2aVwPn7cRLgiGUlQc8jk6uYITuJntT9sAHj2 pKEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=82L4HgI98cuDiXfaLWXM3wSx/aQvckeQFes09/HYdUI=; b=m3ogp9hTmw+wdYXnoSFszjihoQtcxYB/iCLbFagFr9mHxl70hnGuA+IZLpR9EvNaiU y1exr86J/O8E12ou0tpC1eSKWV01fhvxGhVkvYoNnej09T3zHg5bDqQSpc04oZ57q2tX /N1359RzT6P8QdHQUPaRGmCiUCnPZSzgh2W81H6lCKIf/GWAi0jMQ/9LRcY+kXI1hyZM K2mhY8fKSoNsXk1BveptTVLmvGnisrVdfmRg9WAC4oy7KGKDZSvU5V6VFdGqk/2lxgmx 2ut53PV5r99naDNzA9H9dDAFAHz1M6rd4TD6DrMB1o52E6FK4PcjCkE7syZRCkQYcEX7 jD6Q== X-Gm-Message-State: ACgBeo32p9QJyfXv17z/kp3t5fzPCXxioAKwKkHxaJVIVe6j9iDIGJbd caTw/XlTGUOook6n5Ibe1BsSNw== X-Google-Smtp-Source: AA6agR5/D5jxwWAwFuYniRB1sUO5HpS9lbRfGcU5xtxcCff7DjWthw18TpruvVJ7peBHcsGV2R4UGA== X-Received: by 2002:a05:6638:1402:b0:346:8903:f54 with SMTP id k2-20020a056638140200b0034689030f54mr25385745jad.243.1662384420181; Mon, 05 Sep 2022 06:27:00 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id e43-20020a02862e000000b0034a6d12aa25sm4116073jai.4.2022.09.05.06.26.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Sep 2022 06:26:59 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 8F409800DE8; Mon, 5 Sep 2022 08:26:58 -0500 (CDT) Date: Mon, 5 Sep 2022 08:26:58 -0500 From: Justin Pryzby To: "James Pang (chaolpan)" Cc: pgsql-performance@lists.postgresql.org Subject: Re: Postgresql JDBC process consumes more memory than psql client Message-ID: <20220905132658.GK31833@telsasoft.com> References: <20220905124722.GI31833@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Sep 05, 2022 at 12:52:14PM +0000, James Pang (chaolpan) wrote: > Any idea how to print SQL plan from JDBC driver ? You could use "explain execute" on the client, or autoexplain on the server-side. -- Justin