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
    Tom Lane authored
    Commit 9556aa01 rearranged the innards of text_position() in a way
    that would make it not work for empty search strings.  Which is fine,
    because all callers of that code special-case an empty pattern in
    some way.  However, the primary use-case (text_position itself) got
    special-cased incorrectly: historically it's returned 1 not 0 for
    an empty search string.  Restore the historical behavior.
    
    Per complaint from Austin Drenski (via Shay Rojansky).
    Back-patch to v12 where it got broken.
    
    Discussion: https://postgr.es/m/CADT4RqAz7oN4vkPir86Kg1_mQBmBxCp-L_=9vRpgSNPJf0KRkw@mail.gmail.com
    43e43771
    History
    Name Last commit Last update