Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

pg_basebackup failing on .DS_Store files

Đang mở
#715 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
macos, postgresql

Hướng nghiên cứu

Start by reproducing pg_basebackup with a .DS_Store file in a PostgreSQL data directory, then inspect how the backup process handles unexpected files. The issue is done when backups complete successfully without treating .DS_Store as PostgreSQL data; no repository file or test is identified in the report.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug upstream

Hi, spent a bunch of time pulling my hair out because pg_basebackup was failing at random places when trying to qualify replication with this app, it wasn't until I tried some other things (like creating a tar file with -Ft option) that it showed me what was happening.

pg_basebackup: error: backup failed: ERROR: invalid segment number 0 in file ".DS_Store"

It looks like it pg_basebackup might need to filter against these files because it seems to be blindly assuming any/all files in certain directories are pg data.

After manually deleting the .DS_Store files: find ~/Library/Application\ Support/Postgres/ -iname .DS_Store -exec rm {} \;

and then making sure to NOT open those directories with finder again it seems to work as expected.

Ngôn ngữ chính
Makefile
Star
7.8k
Fork
404
Merge trung bình
6 giờ 55 phút
Pull request đã merge (30 ngày)
6

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PostgresApp/PostgresApp

Tất cả issue của PostgresApp/PostgresApp

Issue tương tự

Thêm issue về Databases

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.