From: bderstin@med.umich.edu
To: pgsql-docs@postgresql.org
Subject: clarify 43.7
Date: Fri, 13 Oct 2017 18:34:15 +0000
Message-ID: <20171013183415.8204.48716@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/9.0/static/plpython-database.html
Description:
https://www.postgresql.org/docs/9.4/static/plpython-database.html
"If my_table has a column my_column, it would be accessed as:
foo = rv[i]["my_column"]
The number of rows returned can be obtained using the built-in len
function."
It it unclear where 'i' comes from or how it would be used in context.
Also, the 'len' function is mentioned but no example is shown regarding how
to use it. Is there a generic way to access the entire column "my_column" in
foo without using 'i'?
Is the resulting variable 'foo' a list or dictionary?
thanks!
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: bderstin@med.umich.edu
Subject: Re: clarify 43.7
In-Reply-To: <20171013183415.8204.48716@wrigleys.postgresql.org>
* 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