Something that might be worth noting (in documentation?) is that the PGCopyOutputStream class doesn't hold a reference toits Connection. We came across this because we were trying to keep our DB code separate from the logic, and we started getting errors writingto the PGCopyOutputStream. We banged our heads against it for a while before realizing that the Connection was gettinggarbage collected while we were still writing to it. Our solution was to extend PGCopyOutputStream and hold on to the Connection in that child class, also giving it responsibilityfor closing it. I'm not sure I would call this a defect, but it is something I wanted to share with other people, since we couldn't findanything in our searches on the problem while we were having it.
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера