10000 fixes in Makefile by ziva777 · Pull Request #47 · postgrespro/pg_query_state · GitHub
[go: up one dir, main page]

Skip to content

fixes in Makefile #47

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

Merged
merged 2 commits into from
Jun 20, 2023
Merged
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: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pg_query_state is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses.

Copyright (c) 2016-2019, Postgres Professional
Copyright (c) 2016-2023, Postgres Professional
Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
Portions Copyright (c) 1994, The Regents of the University of California

Expand Down
19 changes: 18 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@ EXTVERSION = 1.1
DATA = pg_query_state--1.0--1.1.sql
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
PGFILEDESC = "pg_query_state - facility to track progress of plan execution"
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/test.conf

EXTRA_CLEAN = ./isolation_output $(EXTENSION)--$(EXTVERSION).sql \
Dockerfile ./tests/*.pyc ./tmp_stress

ISOLATION = corner_cases
#
# PG11 doesn't support ISOLATION_OPTS variable. We have to use
# "CREATE/DROP EXTENTION" command in spec.
#
# One day, when we'll get rid of PG11, it will be possible to uncomment this
# variable and remove "CREATE EXTENTION" from spec.
#
# ISOLATION_OPTS = --load-extension=pg_query_state

ifdef USE_PGXS
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
Expand All @@ -21,11 +31,17 @@ subdir = contrib/pg_query_state
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
# need this to provide make check in case of "in source" build
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/test.conf
endif

$(EXTENSION)--$(EXTVERSION).sql: init.sql
cat $^ > $@

#
# Make conditional targets to save backward compatibility with PG11.
#
ifeq ($(MAJORVERSION),11)
ISOLATIONCHECKS = corner_cases

check: isolationcheck
Expand All @@ -46,3 +62,4 @@ submake-isolation:
$(MAKE) -C $(top_builddir)/src/test/isolation all

temp-install: EXTRA_INSTALL=contrib/pg_query_state
endif
2 changes: 1 addition & 1 deletion pg_query_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* pg_query_state.c
* Extract information about query state from other backend
*
* Copyright (c) 2016-2016, Postgres Professional
* Copyright (c) 2016-2023, Postgres Professional
*
* contrib/pg_query_state/pg_query_state.c
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletion pg_query_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* pg_query_state.h
* Headers for pg_query_state extension.
*
* Copyright (c) 2016-2016, Postgres Professional
* Copyright (c) 2016-2023, Postgres Professional
*
* IDENTIFICATION
* contrib/pg_query_state/pg_query_state.h
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#
# Copyright (c) 2019, Postgres Professional
# Copyright (c) 2019-2023, Postgres Professional
#
# supported levels:
# * standard
Expand Down
2 changes: 1 addition & 1 deletion signal_handler.c
E864
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* signal_handler.c
* Collect current query state and send it to requestor in custom signal handler
*
* Copyright (c) 2016-2016, Postgres Professional
* Copyright (c) 2016-2023, Postgres Professional
*
* IDENTIFICATION
* contrib/pg_query_state/signal_handler.c
Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
common.py
Copyright (c) 2016-2020, Postgres Professional
Copyright (c) 2016-2023, Postgres Professional
'''

import psycopg2
Expand Down
2 changes: 1 addition & 1 deletion tests/pg_qs_test_runner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
pg_qs_test_runner.py
Copyright (c) 2016-2021, Postgres Professional
Copyright (c) 2016-2023, Postgres Professional
'''

import argparse
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cases.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
test_cases.py
Copyright (c) 2016-2021, Postgres Professional
Copyright (c) 2016-2023, Postgres Professional
'''

import json
Expand Down
2 changes: 1 addition & 1 deletion tests/tpcds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
test_cases.py
Copyright (c) 2016-2020, Postgres Professional
Copyright (c) 2016-2023, Postgres Professional
'''

import os
Expand Down
0