MagicStack / MagicStack/asyncpg

greenplum->copy_records_to_table support needed

Ouverte
#333 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Python
Étoiles
8.1k
Forks
468
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

* **asyncpg version**:0.17.0
* **Greenplum version**:5.7
* **Python version**:3.7
* **Platform**:Windows 10/windows 10 WSL
* **Do you use pgbouncer?**:no
* **Did you install asyncpg with pip?**:yes
* **If you built asyncpg locally, which version of Cython did you use?**:n/a
* **Can the issue be reproduced under both asyncio and
[uvloop](https://github.com/magicstack/uvloop)?**:n/a

try to run copy_records_to_table against greenplum 5.7 which report error as:
File "D:\Anaconda3\envs\DataLightFire37\lib\site-packages\asyncpg\connection.py", line 848, in _copy_in_records
copy_stmt, None, None, records, intro_stmt, timeout)
File "asyncpg\protocol\protocol.pyx", line 504, in copy_in
asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "("

Try to run those against PostgreSQL 9.2. It passed.
Also, execute and executemany work fine with Greenplum.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Start by reproducing copy_records_to_table against Greenplum 5.7 and PostgreSQL 9.2, then inspect connection.py line 848 and protocol.pyx line 504 where the failure is reported. Compare the generated COPY statements and verify that record copying works on Greenplum without regressing PostgreSQL behavior.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
postgresql, python
Domaine
databases
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.