- Notifications
You must be signed in to change notification settings - Fork5k
Commitc297a47
committed
postgres_fdw: Add "used_in_xact" column to postgres_fdw_get_connections().
This commit extends the postgres_fdw_get_connections() function toinclude a new used_in_xact column, indicating whether each connectionis used in the current transaction.This addition is particularly useful for the upcoming feature thatwill check if connections are closed. By using those information,users can verify if postgres_fdw connections used in a transactionremain open. If any connection is closed, the transaction cannotbe committed successfully. In this case users can roll back itimmediately without waiting for transaction end.The SQL API for postgres_fdw_get_connections() is updated bythis commit and may change in the future. To handle compatibilitywith older SQL declarations, an API versioning system is introduced,allowing the function to behave differently based on the API version.Author: Hayato KurodaReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/be9382f7-5072-4760-8b3f-31d6dffa8d62@oss.nttdata.com1 parent5687f8c commitc297a47
File tree
7 files changed
+112
-20
lines changed- contrib/postgres_fdw
- expected
- doc/src/sgml
7 files changed
+112
-20
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Lines changed: 74 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
110 | 119 |
| |
111 | 120 |
| |
112 | 121 |
| |
113 | 122 |
| |
| 123 | + | |
114 | 124 |
| |
115 | 125 |
| |
116 | 126 |
| |
| |||
159 | 169 |
| |
160 | 170 |
| |
161 | 171 |
| |
| 172 | + | |
| 173 | + | |
162 | 174 |
| |
163 | 175 |
| |
164 | 176 |
| |
| |||
1977 | 1989 |
| |
1978 | 1990 |
| |
1979 | 1991 |
| |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1980 | 1997 |
| |
1981 |
| - | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
1982 | 2002 |
| |
1983 |
| - | |
1984 |
| - | |
1985 | 2003 |
| |
1986 | 2004 |
| |
1987 | 2005 |
| |
1988 | 2006 |
| |
1989 |
| - | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
1990 | 2013 |
| |
1991 | 2014 |
| |
1992 | 2015 |
| |
1993 |
| - | |
1994 |
| - | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
1995 | 2019 |
| |
1996 |
| - | |
1997 | 2020 |
| |
1998 | 2021 |
| |
1999 | 2022 |
| |
| |||
2002 | 2025 |
| |
2003 | 2026 |
| |
2004 | 2027 |
| |
2005 |
| - | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
2006 | 2044 |
| |
2007 | 2045 |
| |
2008 | 2046 |
| |
| |||
2061 | 2099 |
| |
2062 | 2100 |
| |
2063 | 2101 |
| |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
2064 | 2108 |
| |
2065 | 2109 |
| |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2066 | 2132 |
| |
2067 | 2133 |
| |
2068 | 2134 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10464 | 10464 |
| |
10465 | 10465 |
| |
10466 | 10466 |
| |
10467 |
| - | |
10468 |
| - | |
10469 |
| - | |
10470 |
| - | |
| 10467 | + | |
| 10468 | + | |
| 10469 | + | |
| 10470 | + | |
10471 | 10471 |
| |
10472 | 10472 |
| |
10473 | 10473 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
|
Lines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
777 | 777 |
| |
778 | 778 |
| |
779 | 779 |
| |
780 |
| - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
781 | 783 |
| |
782 | 784 |
| |
783 | 785 |
| |
784 | 786 |
| |
785 | 787 |
| |
786 | 788 |
| |
787 | 789 |
| |
788 |
| - | |
789 |
| - | |
790 |
| - | |
791 |
| - | |
792 |
| - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
793 | 795 |
| |
794 | 796 |
| |
795 | 797 |
| |
| |||
827 | 829 |
| |
828 | 830 |
| |
829 | 831 |
| |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
830 | 839 |
| |
831 | 840 |
| |
832 | 841 |
| |
|
0 commit comments
Comments
(0)