pg_query 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb6aae73c537d8024ae4f667e21f83ada3e7d3a9
4
- data.tar.gz: 3b5782a5498c6942bd854cc564150684373a34a2
3
+ metadata.gz: b2251b16a127ee476a1aed7b7f1a8742345ffd51
4
+ data.tar.gz: 3ca4be0ecefd3404dc2dad263e9d027ada55ee0f
5
5
  SHA512:
6
- metadata.gz: c989c8be4d5c1047916dacbf810d106bacaf537177ed37f45c23da8ccaf098bab2ccf4838f8d9eadce096c8cf002392a0e13e57442af8f8ace3910dcd39435f7
7
- data.tar.gz: ff83df2afe71e20accd4a2782697192110de4c220ba17f21d8dd139fe81d82ba5e0af9dbccd7d9b277a85a1156ad9c29fa80470a29f9c18ed6aca8c62facd220
6
+ metadata.gz: c021937633296ed32789f625008c9bece2711f10ed41e4804e998fa8114e403414b2a191d60c7c937089daac4661d79ce670124f3e4b0653dde62d5b1420ae38
7
+ data.tar.gz: 5b9fcbc430526ad159ca5aa46a16094462eb5b8de956d377be9d740146e7166348364774efca904b32a975b765df70f937c85730653874ca2bbd768045ecdfd5
@@ -45,8 +45,7 @@ if !Dir.exists?(pgdir)
45
45
  end
46
46
 
47
47
  $objs = PG_OBJS.map { |directory, objs| objs.map { |obj| "#{pgdir}/src/#{directory}/#{obj}" } }.flatten
48
- $objs << File.join(File.dirname(__FILE__), "pg_query.o")
49
- $objs << File.join(File.dirname(__FILE__), "pg_polyfills.o")
48
+ $objs += ["pg_query.o", "pg_polyfills.o"]
50
49
 
51
50
  $CFLAGS << " -I #{pgdir}/src/include"
52
51
 
@@ -0,0 +1,33 @@
1
+ /* Polyfills to avoid building unnecessary objects from the PostgreSQL source */
2
+
3
+ #include "postgres.h"
4
+
5
+ /* src/backend/postmaster/postmaster.c */
6
+ bool ClientAuthInProgress = false;
7
+ bool redirection_done = false;
8
+
9
+ /* src/backend/postmaster/syslogger.c */
10
+ bool am_syslogger = false;
11
+
12
+ /* src/backend/tcop/postgres.c */
13
+ #include "tcop/dest.h"
14
+ const char *debug_query_string;
15
+ CommandDest whereToSendOutput = DestDebug;
16
+
17
+ /* src/backend/utils/misc/guc.c */
18
+ char *application_name;
19
+ int client_min_messages = NOTICE;
20
+ int log_min_error_statement = ERROR;
21
+ int log_min_messages = WARNING;
22
+ int trace_recovery_messages = LOG;
23
+
24
+ /* src/backend/storage/lmgr/proc.c */
25
+ #include "storage/proc.h"
26
+ PGPROC *MyProc = NULL;
27
+
28
+ /* src/backend/storage/ipc/ipc.c */
29
+ bool proc_exit_inprogress = false;
30
+
31
+ /* src/backend/tcop/postgres.c */
32
+ #include "miscadmin.h"
33
+ void check_stack_depth(void) { /* Do nothing */ }
@@ -1,3 +1,3 @@
1
1
  class PgQuery
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Fittl
@@ -62,6 +62,7 @@ files:
62
62
  - LICENSE
63
63
  - Rakefile
64
64
  - ext/pg_query/extconf.rb
65
+ - ext/pg_query/pg_polyfills.c
65
66
  - ext/pg_query/pg_query.c
66
67
  - ext/pg_query/pg_query.sym
67
68
  - lib/pg_query.rb