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 1jnQU8-0007Sv-KY for pgsql-docs@arkaria.postgresql.org; Mon, 22 Jun 2020 17:43:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnQU7-0005W8-HY for pgsql-docs@arkaria.postgresql.org; Mon, 22 Jun 2020 17:43:55 +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 1jnQU7-0005W1-8g for pgsql-docs@lists.postgresql.org; Mon, 22 Jun 2020 17:43:55 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jnQU4-0001ae-UH for pgsql-docs@lists.postgresql.org; Mon, 22 Jun 2020 17:43:54 +0000 Received: by mail-qk1-x742.google.com with SMTP id q8so16251351qkm.12 for ; Mon, 22 Jun 2020 10:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=nbLFuqjYzLqD5Dhpy3+4xss/GiNucW77E7pvgPV9Eh8=; b=OcvtKOJtb7xM89/mhTnOK8CFlJAND+vTmm+iWPFjDSkdfYW0RBTXc49DcWStaRpOaW 4/af7N3jW7jM0vKqPUcYxhN++hj3HJ7W3a8y0ouwybOkz7foH7DWZrxkgq7v/sIHIE02 D0lslaIIgIvaULn947gvdJh/jhzA5V6yUir+f4RLKoYcA2V8V/G0TAv5l7qfSgRnG8Tg 4RxG/SyWojUgdoPNN0EkcJ4WSUK6+mi40K8ZGoQQb7UoI8ynQl+lJqCMQsqE+EyCXSH4 ArGDu813u6rg2obJ2OB3XV8CrcClFMh+buhVwJI0QjF1RjXEbWV/L49hNDL08pDakwHm BrNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nbLFuqjYzLqD5Dhpy3+4xss/GiNucW77E7pvgPV9Eh8=; b=HTgA/GKdQMi16DWnUqMCEpK6waOXu0IA9F6VBa7tLBbEcEw4AlOv4U2alToaswcDXx FREtUIZUfsP0An69+AJCEr+5OTFYdEX1esW3WdfFIl8iuOG1rtqGttxZNbEf6+fnapaa l4aUHQCd+jVeatseqW1xlcDd0ssVTGn9y3OwMdhrpeIBx/A5bvRS/IeyAk0rQHkonMpH oisd8mFmEq0Q1ynb90WrP3Zi8fACtwPzTis7YdcnFHxEFE8bdtYoF+/O/+rwrSfAjBk5 BQc02jiulVE+VVMyJimZGISbKbQAHQwoQTrQjw11MKNlFYqntucTYxDhm4tQzLv8sjoc TChQ== X-Gm-Message-State: AOAM532qWg7X0WY2Fyz4r/EM2lW9RbS7jqk0KuL+8kdoatn/VmnwIKM5 4tn8NOjZTdi7nucRAtLBi94peg== X-Google-Smtp-Source: ABdhPJx7pY6EXInc76XrqbLGJ+xLU+/pHxot2Hp3NlOdb8Bm+3CCSbGWrXjXBe4HnhkCKXbBSZawCg== X-Received: by 2002:a37:a987:: with SMTP id s129mr16456491qke.463.1592847831865; Mon, 22 Jun 2020 10:43:51 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id f22sm7691601qko.89.2020.06.22.10.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 10:43:51 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9FC592A3A2C; Mon, 22 Jun 2020 13:43:48 -0400 (-04) Date: Mon, 22 Jun 2020 13:43:48 -0400 From: Alvaro Herrera To: Steve Estes Cc: pgsql-docs@lists.postgresql.org Subject: Re: Summary of DDL/DML statement return/output values? Message-ID: <20200622174348.GA24989@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-22, Steve Estes wrote: > However, for some statements PG's output format is documented (e.g. INSERT > , EXPLAIN > ), and in others it is > not (e.g. SET , CREATE > TABLE , ALTER TABLE > , etc). The > output-control RETURNING clause gets its own page > , but I'm unaware of > any other meta-summary of output values. > > *Is there a summary of what PG returns in response to each of the various > statements that it supports? If not, should there be?* I think starting with commit 2f9661311b83 it might be possible to create such a table. I'm wary of documenting this painting us into a corner forever, though. https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2f9661311b83dc481fc19f6e3bda015392010a40 -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services