Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

minor suggestion: fetchcol() method

Open
#1,183 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql, python
Domain
api, database

Research direction

Start by locating the existing fetchval, fetchrow, and fetch entry points and examining how their return shapes are defined. The work is done when a corresponding fetchcol() convenience method is specified and implemented to return a plain list of values for a single selected column.

Written by the indexing model from the issue text.

Description

You've got:

  • fetchval for scalars
  • fetchrow for a horizontal list of values
  • fetch for a list of list of values

But I don't see a convenience method for returning a vertical list of values — such as when selecting a single column.

(In this case, I think returning a plain old list of values would be more useful than a list of single-value Records.)

Dominant language
Python
Stars
8.1k
Forks
469
Avg merge
2d 20h
Merged PRs (30d)
9

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MagicStack/asyncpg

All issues in MagicStack/asyncpg

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.