MagicStack / MagicStack/asyncpg
Does COPY FROM gaurentee no partial rows?
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 8.1k
- Forks
- 468
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la documentación de PostgreSQL y asyncpg sobre copy_from_query y, a continuación, sigue cómo se describe su corrutina de salida en el material disponible de asyncpg. Documenta las circunstancias, si las hay, en las que la salida de texto, CSV y binaria evita filas parciales, y deja clara la garantía para los usuarios.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- postgresql, python
- Área
- databases
- Tipo de issue
- Documentación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100