Skip to content

Commit 0bb8d37

Browse files
committed
Source modernization
* Drop pg_crash.control, isn't functional * Mute compiler warnings * Add .editorconfig * Update company name * Add debian directory
1 parent 58c38e5 commit 0bb8d37

File tree

17 files changed

+158
-16
lines changed

17 files changed

+158
-16
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
indent_size = tab
5+
6+
[*]
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_style = unset
10+
tab_width = unset
11+
12+
[*.[chly]]
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
indent_style = tab
16+
tab_width = 4
17+
18+
[*.out]
19+
indent_style = unset
20+
indent_size = unset
21+
trim_trailing_whitespace = unset
22+
insert_final_newline = unset

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2017, Cybertec Schönig & Schönig GmbH
3+
Copyright (c) 2017, 2025 CYBERTEC PostgreSQL International GmbH
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ MODULE_big = pg_crash
22
OBJS = pg_crash.o $(WIN32RES)
33
PGFILEDESC = "pg_crash"
44

5-
EXTENSION = pg_crash
6-
5+
PG_CONFIG = pg_config
76
PGXS := $(shell $(PG_CONFIG) --pgxs)
87
include $(PGXS)

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ an extension to PostgreSQL, which allows you to periodically or randomly crash
55
your database infrastructure by sending kill (or other) signals to your DB
66
processes and make them fail. It is ideal for HA and failover testing.
77

8-
Works with Postgres >= 10.0.
8+
Works with Postgres >= 11.
99

1010
# Installation
1111

@@ -21,7 +21,6 @@ NB! Replace /usr/local/pgsql/bin with your desired binary
2121

2222
Add 'pg\_crash to shared\_preload\_libraries and configure signals and timeouts
2323

24-
2524
```
2625
shared_preload_libraries = ',pg_crash'
2726
# any POSIX signals you want to emit from the background worker
@@ -30,13 +29,12 @@ crash.signals = '1 2 3'
3029
crash.delay = 30
3130
```
3231

33-
* restart the server
34-
32+
* restart the server
3533

3634
## Have fun troubleshooting!
3735

3836
### Developer Credits
3937

40-
Antonin Houska, Cybertec PostgreSQL International GmbH.
38+
Antonin Houska, CYBERTEC PostgreSQL International GmbH.
4139
Visit our website: [www.cybertec-postgresql.com](https://www.cybertec-postgresql.com)
4240

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pg-crash (0.2-1) unstable; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Christoph Berg <myon@debian.org> Thu, 12 Jun 2025 16:44:40 +0200

debian/control

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Source: pg-crash
2+
Section: database
3+
Priority: optional
4+
Maintainer: Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org>
5+
Uploaders:
6+
Christoph Berg <myon@debian.org>,
7+
Build-Depends:
8+
architecture-is-64-bit <!pkg.postgresql.32-bit>,
9+
debhelper-compat (= 13),
10+
postgresql-all <!nocheck>,
11+
postgresql-server-dev-all (>= 217~),
12+
Standards-Version: 4.7.2
13+
Rules-Requires-Root: no
14+
Homepage: https://github.com/cybertec-postgresql/pg_crash
15+
Vcs-Browser: https://salsa.debian.org/postgresql/pg-crash
16+
Vcs-Git: https://salsa.debian.org/postgresql/pg-crash.git
17+
18+
Package: postgresql-17-pg-crash
19+
Architecture: any
20+
Depends:
21+
${misc:Depends},
22+
${postgresql:Depends},
23+
${shlibs:Depends},
24+
Description: Periodically crash your PostgreSQL database
25+
If your database is too reliable - pg_crash can kill it for you. pg_crash is
26+
an extension to PostgreSQL that periodically crashes your database
27+
infrastructure by sending kill (or other) signals to your DB processes and
28+
make them fail. It is ideal for HA and failover testing.

debian/control.in

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Source: pg-crash
2+
Section: database
3+
Priority: optional
4+
Maintainer: Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org>
5+
Uploaders:
6+
Christoph Berg <myon@debian.org>,
7+
Build-Depends:
8+
architecture-is-64-bit <!pkg.postgresql.32-bit>,
9+
debhelper-compat (= 13),
10+
postgresql-all <!nocheck>,
11+
postgresql-server-dev-all (>= 217~),
12+
Standards-Version: 4.7.2
13+
Rules-Requires-Root: no
14+
Homepage: https://github.com/cybertec-postgresql/pg_crash
15+
Vcs-Browser: https://salsa.debian.org/postgresql/pg-crash
16+
Vcs-Git: https://salsa.debian.org/postgresql/pg-crash.git
17+
18+
Package: postgresql-PGVERSION-pg-crash
19+
Architecture: any
20+
Depends:
21+
${misc:Depends},
22+
${postgresql:Depends},
23+
${shlibs:Depends},
24+
Description: Periodically crash your PostgreSQL database
25+
If your database is too reliable - pg_crash can kill it for you. pg_crash is
26+
an extension to PostgreSQL that periodically crashes your database
27+
infrastructure by sending kill (or other) signals to your DB processes and
28+
make them fail. It is ideal for HA and failover testing.

debian/copyright

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: pg-crash
3+
Source: https://github.com/cybertec-postgresql/pg_crash
4+
5+
Files: *
6+
Copyright:
7+
Copyright (c) 2017, 2025 CYBERTEC PostgreSQL International GmbH
8+
License: BSD
9+
All rights reserved.
10+
.
11+
Redistribution and use in source and binary forms, with or without
12+
modification, are permitted provided that the following conditions are met:
13+
.
14+
* Redistributions of source code must retain the above copyright notice, this
15+
list of conditions and the following disclaimer.
16+
.
17+
* Redistributions in binary form must reproduce the above copyright notice,
18+
this list of conditions and the following disclaimer in the documentation
19+
and/or other materials provided with the distribution.
20+
.
21+
* Neither the name of the copyright holder nor the names of its
22+
contributors may be used to endorse or promote products derived from
23+
this software without specific prior written permission.
24+
.
25+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

debian/gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: https://salsa.debian.org/postgresql/postgresql-common/raw/master/gitlab/gitlab-ci.yml

debian/pgversions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11+

0 commit comments

Comments
 (0)