MagicStack / MagicStack/asyncpg
Does COPY FROM gaurentee no partial rows?
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 8.1k
- Fork
- 469
- Merge medio
- 18m
- PR unite (30g)
- 4
Descrizione
A quick question, since this is not very obvious from the postgres or asyncpg docs: under what circumstances, if any, does copy_from_query guarantee that no partial rows will be delivered to the output coroutine?
In my experience this hasn't happened, and I could try some more exhaustive testing, but I imagine/hope that someone might just already know the answer.
To me the options seem to be:
- If the networking code reads one line at a time, then the 'text' format guarantees full rows, but not necessarily 'csv' or 'binary'
- Asyncpg itself or postgres itself may explicitly implement such a guarantee?
- Otherwise, there is no guarantee.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con la documentazione di PostgreSQL e asyncpg relativa a copy_from_query, quindi traccia il modo in cui la relativa coroutine di output è descritta nel materiale asyncpg disponibile. Documenta le circostanze, se presenti, in cui l’output testuale, CSV e binario evita righe parziali, e rendi chiara la garanzia per gli utenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- postgresql, python
- Ambito
- databases
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100