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

copy.c

  • Tom Lane's avatar
    df3a6fe4
    Fix psql's \copy command to ensure that it cycles libpq back to the idle state · df3a6fe4
    Tom Lane authored
    (in particular, causing the ReadyForQuery message to be eaten) before
    returning from do_copy.  The only known consequence of failing to do so is
    that get_prompt might show a wrong result for the %x transaction status
    escape, as reported by Bernd Helmle; but it's possible there are other issues.
    
    Back-patch as far as 7.4, the oldest version supporting %x.
    df3a6fe4
    History
    Fix psql's \copy command to ensure that it cycles libpq back to the idle state
    Tom Lane authored
    (in particular, causing the ReadyForQuery message to be eaten) before
    returning from do_copy.  The only known consequence of failing to do so is
    that get_prompt might show a wrong result for the %x transaction status
    escape, as reported by Bernd Helmle; but it's possible there are other issues.
    
    Back-patch as far as 7.4, the oldest version supporting %x.