pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can we go beyond the standard to make Postgres radically better?
Date: Sat, 12 Feb 2022 20:12:02 -0500
Message-ID: <e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com> (raw)
In-Reply-To: <3a50f4fb-3b62-cd5c-a60c-a7211c7f7a5e@pgug.de>
References: <7117322c-185c-4283-990d-6646d8476409@Spark>
	<F04BD036-073C-42AD-B308-43D21C75024B@gmail.com>
	<20220210172229.4it7ioddvrtmws37@hjp.at>
	<eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de>
	<20220212195057.amvpuhytkkcndyhh@hjp.at>
	<ade50b0c-a69e-3d8d-3f70-52363fff24ae@pgug.de>
	<20220212213453.tordj3445pgyxonq@hjp.at>
	<3a50f4fb-3b62-cd5c-a60c-a7211c7f7a5e@pgug.de>

On 2/12/22 19:11, Andreas 'ads' Scherbaum wrote:
> The complaint is not about complex queries, or CTEs, or Joins. This is
> about simple queries where a user wants to discover - surf - the database
> and look into specific tables, but exclude certain columns. More 
> specifically,
> this is when the user types in interactive queries. 

There is already something very similar to what you are describing:

https://www.psycopg.org/docs/cursor.html

Each cursor has its description, which consists of the column 
descriptions. Basically, it's like doing \d on a cursor. Unfortunately, 
it's not interactive, one has to do some pythong programming in order do 
to that. Unfortunately, it is not possible to just "describe the 
cursor", the description becomes available after the "execute" call. 
Hopefully, I understood you correctly.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (50+ messages)  latest in thread

Message-ID: <e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com>
Permalink:  ../e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com/
Also on:    postgresql.org/message-id/e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: gogala.mladen@gmail.com
  Subject: Re: Can we go beyond the standard to make Postgres radically better?
  In-Reply-To: <e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com>
  References: <7117322c-185c-4283-990d-6646d8476409@Spark> <F04BD036-073C-42AD-B308-43D21C75024B@gmail.com> <20220210172229.4it7ioddvrtmws37@hjp.at> <eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de> <20220212195057.amvpuhytkkcndyhh@hjp.at> <ade50b0c-a69e-3d8d-3f70-52363fff24ae@pgug.de> <20220212213453.tordj3445pgyxonq@hjp.at> <3a50f4fb-3b62-cd5c-a60c-a7211c7f7a5e@pgug.de> <e7b6a508-1a44-d40f-ea1b-36ed4dd180cf@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox