Skip to content

Instantly share code, notes, and snippets.

View danielgustafsson's full-sized avatar
💭
☕️

Daniel Gustafsson danielgustafsson

💭
☕️
View GitHub Profile
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 62600d9..403c132 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994-5, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.154 2007/02/14 01:58:56 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.155 2007/02/19 02:23:11 tgl Exp $
diff --git a/contrib/pageinspect/btreefuncs.c b/contrib/pageinspect/btreefuncs.c
index d088ce5..4983bbb 100644
--- a/contrib/pageinspect/btreefuncs.c
+++ b/contrib/pageinspect/btreefuncs.c
@@ -43,11 +43,6 @@ PG_FUNCTION_INFO_V1(bt_page_stats);
#define IS_INDEX(r) ((r)->rd_rel->relkind == RELKIND_INDEX)
#define IS_BTREE(r) ((r)->rd_rel->relam == BTREE_AM_OID)
-#define CHECK_PAGE_OFFSET_RANGE(pg, offnum) { \
- if ( !(FirstOffsetNumber <= (offnum) && \
diff --git a/config/programs.m4 b/config/programs.m4
index 358e4e9..8ccae8c 100644
--- a/config/programs.m4
+++ b/config/programs.m4
@@ -69,7 +69,7 @@ else
echo '%%' > conftest.l
if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
- if echo "$pgac_flex_version" | sed ['s/[^0-9]/ /g'] | $AWK '{ if ([$]1 = 2 && [$]2 = 5 && [$]3 >= 4) exit 0; else exit 1;}'
+ if echo "$pgac_flex_version" | sed ['s/[.a-z]/ /g'] | $AWK '{ if ([$]1 == 2 && ([$]2 > 5 || ([$]2 == 5 && [$]3 >= 4))) exit 0; else exit 1;}'
diff --git a/src/backend/access/appendonly/aosegfiles.c b/src/backend/access/appendonly/aosegfiles.c
index b03661b..d67b069 100644
--- a/src/backend/access/appendonly/aosegfiles.c
+++ b/src/backend/access/appendonly/aosegfiles.c
@@ -1985,7 +1985,7 @@ aorow_compression_ratio_internal(Relation parentrel)
int ret;
float8 compress_ratio = -1; /* the default, meaning "not available" */
- MemoryContext oldcontext = CurrentMemoryContext;
+ MemoryContext oldcontext;
diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile
index fdd8485..95d42f7 100644
--- a/src/backend/parser/Makefile
+++ b/src/backend/parser/Makefile
@@ -1,8 +1,10 @@
#-------------------------------------------------------------------------
#
-# Makefile for parser
+# Makefile--
+# Makefile for parser
diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c
index dcf747c..6627f40 100644
--- a/src/backend/access/transam/xlogreader.c
+++ b/src/backend/access/transam/xlogreader.c
@@ -337,7 +337,8 @@ XLogReadRecord(XLogReaderState *state, XLogRecPtr RecPtr, char **errormsg)
!allocate_recordbuf(state, total_len))
{
/* We treat this as a "bogus data" condition */
- report_invalid_record(state, "record length %u at %X/%X too long",
+ report_invalid_record(state,
/* 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:
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.
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)
- {
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