Emel Şimşek
ee8f4bb7e8
Start Maintenance Daemon for Main DB at the server start. ( #7254 )
...
DESCRIPTION: This change starts a maintenance deamon at the time of
server start if there is a designated main database.
This is the code flow:
1. User designates a main database:
`ALTER SYSTEM SET citus.main_db = "myadmindb";`
2. When postmaster starts, in _PG_Init, citus calls
`InitializeMaintenanceDaemonForMainDb`
This function registers a background worker to run
`CitusMaintenanceDaemonMain `with `databaseOid = 0 `
3. `CitusMaintenanceDaemonMain ` takes some special actions when
databaseOid is 0:
- Gets the citus.main_db value.
- Connects to the citus.main_db
- Now the `MyDatabaseId `is available, creates a hash entry for it.
- Then follows the same control flow as for a regular db,
2023-10-30 09:44:13 +03:00
gindibay
693eeedfaf
Fixes pg15 test name
2023-10-27 19:08:09 +03:00
gindibay
fe136886aa
Changes pg15 test files
2023-10-27 18:43:51 +03:00
gindibay
89e2d63bd3
Adds pg15 create drop to minimal tests
2023-10-27 18:37:22 +03:00
gindibay
dcae4c3486
Fixes python code format
2023-10-27 18:17:58 +03:00
gindibay
5381aa8fda
Fixes flaky tests
2023-10-27 18:13:17 +03:00
gindibay
cf7efca546
Fixes single_node for pg14
2023-10-27 18:01:07 +03:00
Nils Dijk
d0b093c975
automatically add a breakpoint that breaks on postgres errors ( #7279 )
...
When debugging postgres it is quite hard to get to the source for
`errfinish` in `elog.c`. Instead of relying on the developer to set a
breakpoint in the `elog.c` file for `errfinish` for `elevel == ERROR`,
this change adds the breakpoint to `.gdbinit`. This makes sure that
whenever a debugger is attached to a postgres backend it will break on
postgres errors.
When attaching the debugger a small banner is printed that explains how
to disable the breakpoint.
2023-10-27 16:57:51 +02:00
Benjamin O
f9218d9780
Support replacing IPv6 Loopback in `normalize.sed` ( #7269 )
...
I had a test failure issue due to my machine using the IPv6 loopback
address. This change to the `normalize.sed` solves that issue.
2023-10-27 16:42:55 +02:00
gindibay
2b3a556f34
Fixes pg14 tests
2023-10-27 17:40:37 +03:00
gindibay
8c29444bbf
Fixes pg14 tests
2023-10-27 17:25:56 +03:00
gindibay
6eeeddd549
Fixes pg14 tests
2023-10-27 17:11:01 +03:00
gindibay
8519e7d7fa
Adds a dummy file for pg14
2023-10-27 16:56:25 +03:00
gindibay
a0da426a78
Fixes tests
2023-10-27 16:51:31 +03:00
gindibay
736894472e
Fixes pg15 tests
2023-10-27 16:02:09 +03:00
gindibay
d323ab8c51
Fixes pg15 sql
2023-10-27 15:44:22 +03:00
gindibay
93dab80206
Moves pg15 tests
2023-10-27 15:33:55 +03:00
gindibay
66b433310c
Moves pg15 tests to fix errors
2023-10-27 14:46:41 +03:00
gindibay
b4dec6eee8
Fixes test
2023-10-27 14:15:43 +03:00
gindibay
3cb5cab8cd
Fixes test problem
2023-10-27 14:01:23 +03:00
gindibay
b28210c04f
Adds shard selects to debug
2023-10-27 11:03:05 +03:00
gindibay
b41feadd97
Fixes indent
2023-10-27 10:39:16 +03:00
gindibay
8811d910a5
Fixes pg 14 compile errors
2023-10-27 10:28:09 +03:00
gindibay
2a6c40d643
Fixes flaky tests
2023-10-27 10:10:42 +03:00
gindibay
fe26aebf6c
Fixes useless declarations
2023-10-27 09:52:58 +03:00
gindibay
569f4db60c
Fixes pg 14 compile warnings
2023-10-27 09:51:15 +03:00
gindibay
72874a8623
Merge remote-tracking branch 'origin/main' into create_alter_database
2023-10-27 09:12:21 +03:00
gindibay
a797584f1c
Fixes tests
2023-10-27 09:07:19 +03:00
gindibay
473f6cbf05
Fixes metadata sync
2023-10-27 08:37:46 +03:00
gindibay
641e413676
Adds metadatasync for create database
2023-10-26 20:36:43 +03:00
Gokhan Gulbiz
2bf1472c8e
Move GHA environment variables to workflow file ( #7275 )
...
Since GHA does not interpolate env variables in a matrix context, This
PR defines them in a separate job and uses them in other jobs.
2023-10-26 14:54:58 +03:00
gindibay
c8fcf080c2
Fixes out files for transaction message
2023-10-24 20:44:43 +03:00
gindibay
c437850db5
Beatufies error message
2023-10-24 19:25:26 +03:00
gindibay
48d749e2e8
Fixes message for non-transaction-safe commands
2023-10-24 19:15:46 +03:00
gindibay
c7da2cd122
Fixes cannotBeExecutedInTransction
2023-10-24 15:44:59 +03:00
Gürkan İndibay
c5c7705dbe
Merge branch 'main' into create_alter_database
2023-10-24 17:09:54 +03:00
gindibay
c7b040c3cd
Fixes indentation
2023-10-24 15:19:50 +03:00
gindibay
2f52fbd13e
Fixes missing ok issue
2023-10-24 15:14:05 +03:00
gindibay
3a0a5ae344
Fixes missin ok issue
2023-10-24 15:13:22 +03:00
gindibay
b5cbc048b7
Fixes missing ok issue
2023-10-24 15:12:08 +03:00
gindibay
f779947b2b
Removes unnecessary logs
2023-10-24 14:57:36 +03:00
gindibay
1dcee370e1
Fixes create_drop_database_test
2023-10-24 14:44:34 +03:00
gindibay
fb9f75bb24
Removes unnecessary logs
2023-10-24 14:43:12 +03:00
gindibay
e9e64a69c1
Fixes indentation
2023-10-24 14:18:10 +03:00
gindibay
87f694ec0f
Merge branch 'drop_db_as_role' into create_alter_database
2023-10-24 14:13:48 +03:00
gindibay
73f0db2aed
Fixes create and drop database transaction use
2023-10-24 14:09:36 +03:00
gindibay
2d009d46d3
Fixes worker pg_dist_object removal issue
2023-10-24 10:32:27 +03:00
gindibay
c9dae2684f
tests db as role
2023-10-24 10:09:13 +03:00
Naisila Puka
10198b18e8
Technical readme small fixes ( #7261 )
2023-10-23 13:43:43 +03:00
Naisila Puka
1fe16fa746
Remove unnecessary pre-fastpath code ( #7262 )
...
This code was here because we first implemented
`fast path planner` via
[#2606 ](https://github.com/citusdata/citus/pull/2606 )
and then later `deferred pruning`
[#3369 ](https://github.com/citusdata/citus/pull/3369 )
So, for some years, this code was useful.
2023-10-23 13:01:48 +03:00