Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make backend query execution interruptible. #454

Open
wants to merge 3 commits into
base: REL2_x_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compat10/pglogical_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "replication/origin.h"
#include "utils/varlena.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define PGLCreateTrigger CreateTrigger

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
Expand Down
3 changes: 3 additions & 0 deletions compat11/pglogical_compat.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#ifndef PG_LOGICAL_COMPAT_H
#define PG_LOGICAL_COMPAT_H

#include "pgstat.h"
#include "replication/origin.h"
#include "utils/varlena.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)

Expand Down
3 changes: 3 additions & 0 deletions compat12/pglogical_compat.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#ifndef PG_LOGICAL_COMPAT_H
#define PG_LOGICAL_COMPAT_H

#include "pgstat.h"
#include "access/amapi.h"
#include "access/heapam.h"
#include "access/table.h"
#include "access/tableam.h"
#include "replication/origin.h"
#include "utils/varlena.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)

Expand Down
3 changes: 3 additions & 0 deletions compat13/pglogical_compat.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#ifndef PG_LOGICAL_COMPAT_H
#define PG_LOGICAL_COMPAT_H

#include "pgstat.h"
#include "access/amapi.h"
#include "access/heapam.h"
#include "access/table.h"
#include "access/tableam.h"
#include "replication/origin.h"
#include "utils/varlena.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)

Expand Down
3 changes: 3 additions & 0 deletions compat14/pglogical_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#include "access/table.h"
#include "access/tableam.h"
#include "utils/varlena.h"
#include "utils/wait_event.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)
Expand Down
3 changes: 3 additions & 0 deletions compat15/pglogical_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#include "access/table.h"
#include "access/tableam.h"
#include "utils/varlena.h"
#include "utils/wait_event.h"

#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)
Expand Down
4 changes: 4 additions & 0 deletions compat16/pglogical_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include "access/table.h"
#include "access/tableam.h"
#include "utils/varlena.h"
#include "utils/wait_event.h"

#include "libpq/libpq-be-fe-helpers.h"
#include "compat94/pglogical_libpq-be-fe-helpers.h"

#define WaitLatchOrSocket(latch, wakeEvents, sock, timeout) \
WaitLatchOrSocket(latch, wakeEvents, sock, timeout, PG_WAIT_EXTENSION)
Expand Down
3 changes: 3 additions & 0 deletions compat94/pglogical_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include "storage/lwlock.h"
#include "utils/array.h"

#define PG_WAIT_EXTENSION 0
#include "compat94/pglogical_libpq-be-fe-helpers.h"

/* 9.4 lacks PG_*_MAX */
#ifndef PG_UINT32_MAX
#define PG_UINT32_MAX (0xFFFFFFFF)
Expand Down
Loading