Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Andres Freund authored
    Cribbing from dfbaed45:
        Some operating systems, including the reporter's windows, return EBADFD
        or similar when fsync() is invoked on a O_RDONLY file descriptor.
        Unfortunately RestoreSlotFromDisk() does exactly that; which causes
        failures after restarts in at least some scenarios.
    
        If you hit the bug the error message will be something like
        ERROR: could not fsync file "pg_replslot/$name/state": Bad file descriptor
    
        Simply use O_RDWR instead of O_RDONLY when opening the relevant file
        descriptor to fix the bug.
    
    Unfortunately this fix was undone in 82a5649f. Re-apply, and add a
    comment.
    
    Bug: 16039
    Reported-By: Hans Buschmann
    Author: Andres Freund
    Discussion: https://postgr.es/m/16039-196fc97cc05e141c@postgresql.org
    Backpatch: 12-, as 82a5649f
    a586cc4b
    History
    Name Last commit Last update