Skip to content

'Pool' object has no attribute 'copy_to_table' #641

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Closed
papapon opened this issue Oct 19, 2020 · 1 comment · Fixed by #661
Closed

'Pool' object has no attribute 'copy_to_table' #641

papapon opened this issue Oct 19, 2020 · 1 comment · Fixed by #661

Comments

@papapon
Copy link

papapon commented Oct 19, 2020

  • asyncpg version: 0.20.1
  • PostgreSQL version: 11.9
  • Python version: 3.7
  • Platform: Debian 9.12 / Docker / 'bitnami/postgresql'
  • Do you use pgbouncer?: No
  • Did you install asyncpg with pip?: yes
  • Can the issue be reproduced under both asyncio and
    uvloop?
    : at least asyncio

When I connect with await asyncpg.create_pool(), if I use copy_to_table, I obtain AttributeError("'Pool' object has no attribute 'copy_to_table'").
If I connect with await asyncpg.connect(), it works perfectly.
Is it normal?

elprans added a commit that referenced this issue Nov 26, 2020
The `copy_to_table()` and friends are currently missing from the `Pool`
interface, add them in.

Fixes: #641.
@elprans
Copy link
Member

elprans commented Nov 26, 2020

It's missing due to an oversight and nobody complained before :-) Fixed in #661.

elprans added a commit that referenced this issue Nov 29, 2020
The `copy_to_table()` and friends are currently missing from the `Pool`
interface, add them in.

Fixes: #641.
elprans added a commit that referenced this issue Aug 10, 2021
The `copy_to_table()` and friends are currently missing from the `Pool`
interface, add them in.

Fixes: #641.
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants