Skip to content

Instantly share code, notes, and snippets.

View danielgustafsson's full-sized avatar
💭
☕️

Daniel Gustafsson danielgustafsson

💭
☕️
View GitHub Profile
#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";
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
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>
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
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);
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
Core file '/cores/core.65104' (x86_64) was loaded.
(lldb) bt
* thread #1: tid = 0x0000, 0x0000000106a5989e libpq.5.dylib`resetPQExpBuffer [inlined] initPQExpBuffer(str=<unavailable>) + 38 at pqexpbuffer.c:102, stop reason = signal SIGSTOP
* frame #0: 0x0000000106a5989e libpq.5.dylib`resetPQExpBuffer [inlined] initPQExpBuffer(str=<unavailable>) + 38 at pqexpbuffer.c:102
frame #1: 0x0000000106a59878 libpq.5.dylib`resetPQExpBuffer(str=<unavailable>) + 40 at pqexpbuffer.c:157
frame #2: 0x0000000106a51752 libpq.5.dylib`pqGets_internal(buf=0x00007f8ae94075a0, conn=0x00007f8ae9407270, resetbuffer=<unavailable>) + 98 at fe-misc.c:154
frame #3: 0x0000000106a57f2f libpq.5.dylib`getParameterStatus(conn=0x00007f8ae9407270) + 31 at fe-protocol3.c:1368
frame #4: 0x0000000106a570be libpq.5.dylib`pqParseInput3(conn=0x00007f8ae9407270) + 638 at fe-protocol3.c:180
frame #5: 0x0000000106a4ee24 libpq.5.dylib`PQisBusy [inlined] parseInput(conn=0x00007f8ae9407270) + 20 at fe-exec.c:1671
frame #6: 0x000000
diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c
index 389891d..45f9016 100644
--- a/src/backend/libpq/be-secure-openssl.c
+++ b/src/backend/libpq/be-secure-openssl.c
@@ -615,11 +615,8 @@ be_tls_write(Port *port, void *ptr, size_t len, int *waitfor)
break;
case SSL_ERROR_SYSCALL:
/* leave it to caller to ereport the value of errno */
- if (n != -1)
- {
As part of your PGConf.EU 2016 Platinum sponsorship package you had the option
to submit a proposal for a 20 minute keynote slot during the open call for papers
period (see the list of benefits in Attachment A).
We have however not received a keynote submission from you and the call for
papers has now closed. If you still would like to claim the benefit of a
closing session keynote, and we hope you do, we would like to extend the option
of converting one of the talks submitted by your employees into a shorter
keynote.
/* English version below */
Hej,
Då var det dags tid att dra igång höstsäsongen i Stockholm PostgreSQL User Group. Första träffen är inplanerad till den 31:a augusti och går av stapeln hos Trustly i deras nya fina lokaler vid Odenplan.
Mötets huvudpresentation levereras av Magnus Hagander som kommer prata om "PostgreSQL Backups the modern way".
Vi ser också gärna ett antal mindre 5 - 15 minuters presentationer så har ni något intressant, eller ointressant, kontakta oss snarast. Än så länge är följande korta presentationer inplanerade: