1. 14 12月, 2017 11 次提交
    • P
      Fix use-after-free in PyGreSQL (#4128) · 705124e6
      Peifeng Qiu 提交于
      pg_query function is the underlying workhorse for db.query in
      python. For INSERT queries, it will return a string containing
      the number of rows successfully inserted.
      
      PQcmdTuples() parses a PGresult return by PQExec, if it's an insert
      count result, return a pointer to the count. However this pointer
      is the internal buffer of PGresult, it shouldn't be used after
      PQClear(), although most time its content remain accessible and
      unchanged. PyString_FromString will make a copy of the string, so
      move PQClear() after PyString_FromString is safe.
      
      This will fix the problem that gpload get a unprintable insert
      count sometimes.
      705124e6
    • M
      Resolve some GPDB_84_MERGE_FIXMEs in bitmap as well as a minor · f1fdc75a
      Max Yang 提交于
      possible memory leak.
      
      Author: Xiaoran Wang <xiwang@pivotal.io>
      f1fdc75a
    • M
      Fix internal_bpchar_pattern_compare compare logic to keep it · 35b53cbf
      Max Yang 提交于
      as same as upstream.
      
      In upstream, internal_bpchar_pattern_compare compare inputs by ignoring
      ending space. But GPDB it just use whole string compare. The bug didn't
      appear because the before merging PG_MERGE_84 GPDB just use TableScan when executing
      following query, but after PG_MERGE_84, IndexScan is used, and internal_bpchar_pattern_compare
      will be used for index:
      create table tbl(id int4, v char(10));
      create index tbl_v_idx_bpchar on tbl using btree(v bpchar_pattern_ops);
      insert into tbl values (1, 'abc');
      explain select * from tbl where v = 'abc '::char(20);
      select * from tbl where v = 'abc '::char(20);
      
      Author: Xiaoran Wang <xiwang@pivotal.io>
      35b53cbf
    • X
      fix FIXME in transformStorageEncodingClause · 8cb28ee6
      Xiaoran Wang 提交于
      The parameter namespace passed to transformRelOptions routine
      has only tow values. One is 'toast',the other one is NULL.
      'toast' value is to filter toast reloptions. NULL value is to
      get no-toast reloptions.
      
      In transformStorageEncodingClause routine just need to get
      no-toast reloption.
      
      Author: Max Yang <myang@pivotal.io>
      8cb28ee6
    • X
      Update missing_xlog to make it more deterministic · b69a8209
      Xin Zhang 提交于
      Before we shutdown the mirror, we create a checkpoint and also do an
      empty transaction to ensure the restart point is created on mirror.
      
      This will speedup the mirror recovery because we don't have to reply all
      the xlog records from the beginning.
      
      Author: Xin Zhang <xzhang@pivotal.io>
      Author: Taylor Vesely <tvesely@pivotal.io>
      b69a8209
    • T
      Add db_in_standby_mode to update control file · 6a546701
      Taylor Vesely 提交于
      In previous commit c9e2693c, the control
      file will be updated on the mirror when restart point is created.
      However, different from upstream, GPDB is running mirror under
      DB_IN_STANDY_MODE rather than DB_IN_ARCHIVE_RECOVERY mode in upstream.
      Hence, the control file was never updated when creating restart point.
      
      Author: Xin Zhang <xzhang@pivotal.io>
      Author: Taylor Vesely <tvesely@pivotal.io>
      6a546701
    • B
      Set the max size of join order threshold to 12 · 426bf31f
      Bhuvnesh Chaudhary 提交于
      Signed-off-by: NHaisheng Yuan <hyuan@pivotal.io>
      426bf31f
    • X
      Make fsync=off default on create-demo-cluster · 1ee171fa
      Xin Zhang 提交于
      Also remove the redundant fsync=off from related pipeline files.
      
      It can be overriden with BLDWRAP_POSTGRES_CONF_ADDONS.
      
      Author: Xin Zhang <xzhang@pivotal.io>
      Author: Ashwin Agrawal <aagrawal@pivotal.io>
      1ee171fa
    • S
      Correct typo · ced25b39
      Shreedhar Hardikar 提交于
      ced25b39
    • L
      5c210c49
    • A
      Remove Startup Pass 4 PT verification code. · 5361041d
      Ashwin Agrawal 提交于
      This code is hidden under GUC and never turned on, so no point keeping it. Was
      coded in past due to some inconsistency issues which have not surfaced from long
      time now. Plus, anyways PT needs to go away soon as well.
      5361041d
  2. 13 12月, 2017 16 次提交
  3. 12 12月, 2017 13 次提交