You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,10 +137,17 @@ Initialize package repositories required for building extensions.
136
137
137
138
```bash
138
139
pig build repo # equivalent to: pig repo set -ru
140
+
pig build repo -m # use mirror/proxy routes for PostgreSQL repos
141
+
pig build repo -b # include PostgreSQL beta repository
139
142
```
140
143
141
144
**What it does:** initializes build repositories with `pig repo set -ru`: remove old repositories, add required repositories, and refresh package caches.
142
145
146
+
**Options:**
147
+
148
+
-`-m|--mirror`: use Pigsty mirror/proxy routes for PostgreSQL repositories.
149
+
-`-b|--beta`: include the PostgreSQL beta repository module, currently for PG19 beta builds.
-**Default**: minimal tools plus extra compilers, development libraries, and packaging tools such as `rpmbuild` and `dpkg-dev`.
159
168
-**Full (`full`)**: default tools plus language-specific development tools and advanced debugging or profiling utilities.
160
169
170
+
On EL systems, the default build toolset installs explicit PostgreSQL development/server packages for the stable active majors. Use `--beta` when you also need the current beta major.
171
+
161
172
162
173
## build rust
163
174
@@ -166,10 +177,16 @@ Install the Rust toolchain required by Rust-based extensions.
166
177
```bash
167
178
pig build rust # install with confirmation
168
179
pig build rust -y # force reinstall Rust toolchain
180
+
pig build rust -m # use rsproxy.cn and Cargo mirror config
169
181
```
170
182
171
183
**Installed components:** Rust compiler (`rustc`), Cargo, Rust standard library, and development tools.
172
184
185
+
**Options:**
186
+
187
+
-`-y|--yes`: force Rust reinstallation even if Cargo already exists.
188
+
-`-m|--mirror`: download `rustup` from the China mirror and write `~/.cargo/config.toml` for `rsproxy.cn`.
pig build pkg citus --pg 17,16 # build for multiple PG versions
265
291
pig build pkg citus -s # include debug symbols
266
292
pig build pkg citus -m # prefer the pigsty.cc China mirror for sources
293
+
pig build pkg cloudberry # build cloudberry, backup, and pxf in order
267
294
```
268
295
269
296
**Options:**
@@ -272,6 +299,8 @@ pig build pkg citus -m # prefer the pigsty.cc China mirror for sources
272
299
-`-s|--symbol`: build debug symbol packages (RPM only).
273
300
-`-m|--mirror`: prefer the `pigsty.cc` mirror when downloading source files.
274
301
302
+
`pig build pkg cloudberry` is a suite workflow: it downloads the full Cloudberry source bundle, builds the core package first, installs the local artifact, then builds `cloudberry-backup` and `cloudberry-pxf`.
303
+
275
304
276
305
## Common Workflows
277
306
@@ -373,16 +402,16 @@ cargo pgrx init
373
402
374
403
### Common Extensions to Build
375
404
376
-
| Extension |Type | Build Time | Complexity | Special Requirements |
0 commit comments