Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15c3ee4

Browse files
committed
pgpro_redefinition
0 parents  commit15c3ee4

File tree

65 files changed

+8209
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+8209
-0
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
.

‎LICENSE‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
POSTGRES PROFESSIONAL LICENSE
2+
FOR CUSTOMERS
3+
TO INTERNALLY USE POSTGRES PRO SOFTWARE
4+
Version 1.3 - 2024-04-04
5+
6+
0. BACKGROUND. Postgres Professional publishes software in "source-available" or "open code" form. This means that source code of the software is available for inspection and adaptation.
7+
8+
1. LICENSE GRANT. If Postgres Professional LLC and Postgres Professional Europe Limited (collectively "PgPro") intentionally provides to a legal or natural person ("Customer") a copy of the Postgres Pro Software ("Software") with an express written statement that this Postgres Professional License ("PgPro License") shall apply to such copy, then PgPro grants such Customer a royalty-free, non-exclusive, worldwide, personal, non-transferable, non-sublicensable right to copy, adapt and Internally Use the Software on the condition that Customer complies with all terms and limitations of this PgPro License and only to the extent expressly permitted under this PgPro License.
9+
10+
"Internally Use" means executing and utilizing the functionality of the Software by the Customer through statutory employees and individual independent contractors of the Customer, its Affiliates and Service Providers ("Customer's Extended Enterprise") for purposes of supporting the Customer's internal business processes, subject to written confidentiality and non-disclosure agreements that prohibit disclosures of the Software to anyone outside Customer's Extended Enterprise, and does not extend to any form of distribution, publication, public display, public performance or hosting for remote access by anyone who is not part of Customer's Extended Enterprise.
11+
12+
"Affiliate" means any legal entity that is wholly owned by Customer, wholly-owns Customer or is under hundred percent common ownership with Customer.
13+
14+
"Service Provider" means an entity that uses the Software solely on behalf and in the interest of the Customer (and not for its own purposes or its other customers) to provide services other than technical support or modifications of the Software. For the avoidance of doubt, PgPro does not grant any license directly to Service Providers. Service Providers may only assist Customer in exercising Customer's rights under this License. Service Providers must not modify the Software or provide Customer with technical support or maintenance concerning the Software.
15+
16+
2. LIMITATIONS. Customer must not use - or enable or permit anyone to use - the Software, except as expressly permitted in Section 1 (License Grant). For the avoidance of doubt, Customer must not disclose, modify, distribute, sell, publicly display, publicly perform or host on a "cloud", "SaaS", "DBaaS" or other remote access basis.
17+
18+
3. CONFIDENTIALITY. Customer must keep the Software confidential and not disclose or use the Software, except as permitted under this PgPro License.
19+
20+
4. CUSTOMER LICENSE. If Customer shares any improvements, bug fixes of the Software or information related thereto ("Improvements") with PgPro, then Customer grants PgPro a royalty-free, non-exclusive, worldwide, transferable, sublicensable and irrevocable license to use, make, sell, import, export, disclose, copy, adapt, modify, distribute, publicly display, publicly perform, host for remote access and commercialize or utilize in similar or other ways, at PgPro's sole discretion, the Improvements.
21+
22+
5. DISCLAIMER. PGPRO DOES NOT EXTEND ANY EXPRESS REPRESENTATIONS OR WARRANTY AND HEREBY DISCLAIMS ANY IMPLIED WARRANTIES AND REPRESENTATIONS REGARDING THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTY OF MERCHANTABILITY, FUNCTIONALITY, QUIET ENJOYMENT, NON-INFRINGEMENT AND PROFESSIONAL OR WORKMANLIKE SERVICES PERTAINING TO THE SOFTWARE. PGPRO SHALL NOT BE LIABLE FOR ANY DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS, LOST DATA, LOST REVENUE, OR INDIRECT, CONSEQUENTIAL, SPECIAL OR OTHER DAMAGES CAUSED BY OR RELATED TO THE SOFTWARE.
23+
24+
6. GENERAL TERMS. This PgPro License shall be governed by, and interpreted under, State of California, United States of America, law. Except as expressly agreed in a signed written agreement with Customer, PgPro may update the terms of this PgPro License at its sole discretion with 90 days prior notice to Customer and PgPro does not accept, and hereby expressly rejects, any additional or conflicting terms that Customer may propose or communicate in standard procurement terms or otherwise.
25+

‎README.md‎

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

‎schema/common.const.sql‎

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
2+
create or replacefunctionpgpro_redefinition._default_schema(
3+
) returnstextas
4+
$body$
5+
select'pgpro_redefinition';
6+
$body$ language sql immutable;
7+
8+
create or replacefunctionpgpro_redefinition._default_jobs_apply_count(
9+
) returnsintegeras
10+
$body$
11+
select5;
12+
$body$ language sql immutable;
13+
14+
create or replacefunctionpgpro_redefinition._default_jobs_redef_count(
15+
) returnsintegeras
16+
$body$
17+
select5;
18+
$body$ language sql immutable;
19+
20+
create or replacefunctionpgpro_redefinition._default_lsn_partition_multiplier(
21+
) returnsintegeras
22+
$body$
23+
select1;
24+
$body$ language sql immutable;
25+
26+
create or replacefunctionpgpro_redefinition._default_create_next_sub_part(
27+
) returnsintegeras
28+
$body$
29+
select3;
30+
$body$ language sql immutable;
31+
32+
create or replacefunctionpgpro_redefinition._default_lsn_step(
33+
) returnsbigintas
34+
$body$
35+
select 0x5fffffff;
36+
$body$ language sql immutable;
37+
38+
createtypepgpro_redefinition.commit_typeas enum (
39+
'commit'
40+
,'autonomous'
41+
);
42+
43+
create or replacefunctionpgpro_redefinition._commit_type_commit(
44+
) returnspgpro_redefinition.commit_typeas
45+
$body$
46+
select'commit'::pgpro_redefinition.commit_type;
47+
$body$ language sql immutable;
48+
49+
create or replacefunctionpgpro_redefinition._commit_type_autonomous(
50+
) returnspgpro_redefinition.commit_typeas
51+
$body$
52+
select'commit'::pgpro_redefinition.commit_type;
53+
$body$ language sql;
54+
55+
createtypepgpro_redefinition.typeas enum (
56+
'online'-- онлайн
57+
,'deferred'-- отложенная
58+
);
59+
60+
create or replacefunctionpgpro_redefinition._type_online(
61+
) returnspgpro_redefinition.typeas
62+
$body$
63+
select'online'::pgpro_redefinition.type;
64+
$body$ language sql immutable;
65+
66+
create or replacefunctionpgpro_redefinition._type_deferred(
67+
) returnspgpro_redefinition.typeas
68+
$body$
69+
select'deferred'::pgpro_redefinition.type;
70+
$body$ language sql immutable;
71+
72+
createtypepgpro_redefinition.kindas enum (
73+
'redef'-- таблица приемник должна существовать
74+
,'any'-- любое действие с данными таблицы, можно копировать, можно разбить на 2 и более таблиц. Таблица приемник не устанавливается
75+
);
76+
77+
create or replacefunctionpgpro_redefinition._kind_redef(
78+
) returnspgpro_redefinition.kindas
79+
$body$
80+
select'redef'::pgpro_redefinition.kind;
81+
$body$ language sql immutable;
82+
83+
create or replacefunctionpgpro_redefinition._kind_any(
84+
) returnspgpro_redefinition.kindas
85+
$body$
86+
select'any'::pgpro_redefinition.kind;
87+
$body$ language sql immutable;
88+
89+
createtypepgpro_redefinition.job_typeas enum (
90+
'redef_data'
91+
,'apply_data'
92+
);
93+
94+
create or replacefunctionpgpro_redefinition._job_type_redef_data(
95+
) returnspgpro_redefinition.job_typeas
96+
$body$
97+
select'redef_data'::pgpro_redefinition.job_type;
98+
$body$ language sql immutable;
99+
100+
create or replacefunctionpgpro_redefinition._job_type_apply_data(
101+
) returnspgpro_redefinition.job_typeas
102+
$body$
103+
select'apply_data'::pgpro_redefinition.job_type;
104+
$body$ language sql immutable;
105+
106+
createtypepgpro_redefinition.flow_typeas enum (
107+
'flow_type_separate'
108+
,'flow_type_general'
109+
);
110+
111+
create or replacefunctionpgpro_redefinition._flow_type_separate(
112+
) returnspgpro_redefinition.flow_typeas
113+
$body$
114+
select'flow_type_separate'::pgpro_redefinition.flow_type;
115+
$body$ language sql immutable;
116+
117+
create or replacefunctionpgpro_redefinition._flow_type_general(
118+
) returnspgpro_redefinition.flow_typeas
119+
$body$
120+
select'flow_type_general'::pgpro_redefinition.flow_type;
121+
$body$ language sql immutable;
122+
123+
create or replacefunctionpgpro_redefinition._default_on_error_stop(
124+
) returnsbooleanas
125+
$body$
126+
select true;
127+
$body$ language sql immutable;
128+
129+
create or replacefunctionpgpro_redefinition._param_service_job_id(
130+
) returnstextas
131+
$body$
132+
select'service_job_id';
133+
$body$ language sql immutable;
134+
135+
create or replacefunctionpgpro_redefinition._param_service_resubmit_interval_sec(
136+
) returnsintegeras
137+
$body$
138+
select60;
139+
$body$ language sql immutable;
140+
141+
create or replacefunctionpgpro_redefinition._prepared_statement_name_template(
142+
) returnstextas
143+
$body$
144+
select'redef_query_%1$s';
145+
$body$ language sql immutable;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp