1. 24 Jan, 2019 3 commits
  2. 23 Jan, 2019 5 commits
  3. 22 Jan, 2019 8 commits
  4. 21 Jan, 2019 17 commits
  5. 19 Jan, 2019 4 commits
  6. 18 Jan, 2019 3 commits
    • Tom Lane's avatar
      Fix under-quoted filename pattern in pgbench TAP test. · 458a1244
      Tom Lane authored
      Avoids issues if build directory's pathname contains regex
      metacharacters.
      
      Raúl Marín Rodríguez
      
      Discussion: https://postgr.es/m/CAM6_UM6dGdU39PKAC24T+HD9ouy0jLN9vH6163K8QEEzr__iZw@mail.gmail.com
      458a1244
    • Tom Lane's avatar
      Use our own getopt() on OpenBSD. · 69bcd718
      Tom Lane authored
      Recent OpenBSD (at least 5.9 and up) has a version of getopt(3)
      that will not cope with the "-:" spec we use to accept double-dash
      options in postgres.c and postmaster.c.  Admittedly, that's a hack
      because POSIX only requires getopt() to allow alphanumeric option
      characters.  I have no desire to find another way, however, so
      let's just do what we were already doing on Solaris: force use
      of our own src/port/getopt.c implementation.
      
      In passing, improve some of the comments around said implementation.
      
      Per buildfarm and local testing.  Back-patch to all supported branches.
      
      Discussion: https://postgr.es/m/30197.1547835700@sss.pgh.pa.us
      69bcd718
    • Alvaro Herrera's avatar
      Fix creation of duplicate foreign keys on partitions · 0325d7a5
      Alvaro Herrera authored
      When creating a foreign key in a partitioned table, if some partitions
      already have equivalent constraints, we wastefully create duplicates of
      the constraints instead of attaching to the existing ones.  That's
      inconsistent with the de-duplication that is applied when a table is
      attached as a partition.  To fix, reuse the FK-cloning code instead of
      having a separate code path.
      
      Backpatch to Postgres 11.  This is a subtle behavior change, but surely
      a welcome one since there's no use in having duplicate foreign keys.
      
      Discovered by Álvaro Herrera while thinking about a different problem
      reported by Jesper Pedersen (bug #15587).
      
      Author: Álvaro Herrera
      Discussion: https://postgr.es/m/201901151935.zfadrzvyof4k@alvherre.pgsql
      0325d7a5