Skip to content

Instantly share code, notes, and snippets.

View danielgustafsson's full-sized avatar
💭
☕️

Daniel Gustafsson danielgustafsson

💭
☕️
View GitHub Profile
diff --git a/config/programs.m4 b/config/programs.m4
index 5fa03c3..0c308c5 100644
--- a/config/programs.m4
+++ b/config/programs.m4
@@ -34,12 +34,21 @@ if test "$BISON"; then
fi
if test -z "$BISON"; then
- AC_MSG_WARN([
+ PGAC_TEST_GENERATED_FILES
diff --git a/src/backend/cdb/cdbfilerepresyncmanager.c b/src/backend/cdb/cdbfilerepresyncmanager.c
index 36dd802..98f32e9 100644
--- a/src/backend/cdb/cdbfilerepresyncmanager.c
+++ b/src/backend/cdb/cdbfilerepresyncmanager.c
@@ -1292,14 +1292,14 @@ FileRepResyncManager_InSyncTransition(void)
MirroredFlatFile_DropFilesFromDir();
fileRepResyncShmem->checkpointRequest = TRUE;
- CreateCheckPoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
+ RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
set number
set autoindent
set smartindent
set title
set hidden
syntax on
if has('gui_running')
else
let g:solarized_termcolors=16
let g:solarized_italic=0
postgres=# select jsonx_build_object('{"o": {"foo":"bar", "apa":"tuta", "phone":["1",2]}}');
jsonx_build_object
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<json:object xsi:schemaLocation="http://www.datapower.com/schemas/json jsonx.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx">+
<json:object name="o"> +
<json:string name="foo">bar</json:string> +
<json:string name="apa">tuta</json:string>
diff --git a/README.md b/README.md
index 4d15fa3c6b..6f558b0d8c 100644
--- a/README.md
+++ b/README.md
@@ -215,19 +215,24 @@ gpperfmon is dependent on several libraries like apr, apu, and libsigar
* The default regression tests
```
-make installcheck-good
+make installcheck-world
#include <stdio.h>
#include <libpq-fe.h>
int
main(int argc, char **argv)
{
int typmod;
int ret = 1;
int i;
char * conninfo = "dbname=danielgustafsson user=test password=test";
From 7e0973e51969c110f753e77395f5fa538a20e493 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <daniel@yesql.se>
Date: Wed, 30 Aug 2017 13:13:21 +0200
Subject: [PATCH] Defualt to post-8.1 coding convention for PG_MODULE_MAGIC
PG_MODULE_MAGIC has been around since 8.2, with 8.1 long since in
EOL. Default to avoiding the #ifdef test for the macro and instead
turn the documentation around that it may be needed, instead of
saying it can be omitted. Also remove the last remaining #ifdef
tests in the code.
diff --git a/template/confreg/admin_waitlist.html b/template/confreg/admin_waitlist.html
index 098cccf..7628f37 100644
--- a/template/confreg/admin_waitlist.html
+++ b/template/confreg/admin_waitlist.html
@@ -38,6 +38,10 @@ function showDialog(id) {
<td>Confirmed registrations</td>
<td>{{num_confirmedregs}}</td>
</tr>
+ <tr>
+ <td>Attendees on the waitlist</td>
/Users/danielgustafsson/dev/greenplum/hacks/gpAux/gpdemo/datadirs/standby/pg_xlog/000000010000000000000003:
[page:0, xlp_info:2, xlp_tli:1, xlp_pageaddr:0/C000000] XLP_LONG_HEADER
[cur:0/C000020, xid:0, rmid:0(XLOG), len/tot_len:4/36, info:48, prev:0/80000A0] nextOid: 24576
[cur:0/C000048, xid:690, rmid:10(Heap), len/tot_len:21/1253, info:9, prev:0/C000020] insert: s/d/r:1664/0/1262 blk/off:0/4 header: none
[cur:0/C000048, xid:690, rmid:10(Heap), len/tot_len:21/1253, info:9, prev:0/C000020] bkpblock[1]: s/d/r:1664/0/1262 blk:0 hole_off/len:52/31596 apply:1
[cur:0/C000530, xid:690, rmid:11(Btree), len/tot_len:18/230, info:9, prev:0/C000048] insert_leaf: s/d/r:1664/0/2671 tid 1/2
[cur:0/C000530, xid:690, rmid:11(Btree), len/tot_len:18/230, info:9, prev:0/C000048] bkpblock[1]: s/d/r:1664/0/2671 blk:1 hole_off/len:40/32616 apply:1
[cur:0/C000618, xid:690, rmid:11(Btree), len/tot_len:18/198, info:9, prev:0/C000530] insert_leaf: s/d/r:1664/0/2672 tid 1/4
/Users/danielgustafsson/dev/greenplum/hacks/gpAux/gpdemo/datadirs/standby/pg_xlog/000000010000000000000003:
[page:0, xlp_info:2, xlp_tli:1, xlp_pageaddr:0/C000000] XLP_LONG_HEADER
[cur:0/C000020, xid:0, rmid:0(XLOG), len/tot_len:4/36, info:48, prev:0/80000A0] nextOid: 24576
[cur:0/C000048, xid:690, rmid:10(Heap), len/tot_len:21/1253, info:9, prev:0/C000020] insert: s/d/r:1664/0/1262 blk/off:0/4 header: none
[cur:0/C000048, xid:690, rmid:10(Heap), len/tot_len:21/1253, info:9, prev:0/C000020] bkpblock[1]: s/d/r:1664/0/1262 blk:0 hole_off/len:52/31596 apply:1
[cur:0/C000530, xid:690, rmid:11(Btree), len/tot_len:18/230, info:9, prev:0/C000048] insert_leaf: s/d/r:1664/0/2671 tid 1/2
[cur:0/C000530, xid:690, rmid:11(Btree), len/tot_len:18/230, info:9, prev:0/C000048] bkpblock[1]: s/d/r:1664/0/2671 blk:1 hole_off/len:40/32616 apply:1
[cur:0/C000618, xid:690, rmid:11(Btree), len/tot_len:18/198, info:9, prev:0/C000530] insert_leaf: s/d/r:1664/0/2672 tid 1/4