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
Adds Support for COPY TO/FROM Google Cloud Storage
Supports following Google Cloud Storage uri forms:
- gs:// \<bucket\> / \<path\>
**Configuration**
The simplest way to configure object storage is by creating a json config file like [`/tmp/gcs.json`]:
```bash
$ cat /tmp/gcs.json
{
"gcs_base_url": "http://localhost:4443",
"disable_oauth": true,
"client_email": "",
"private_key_id": "",
"private_key": ""
}
```
Alternatively, you can use the following environment variables when starting postgres to configure the Google Cloud Storage client:
- `GOOGLE_SERVICE_ACCOUNT_KEY`: json serialized service account key
- `GOOGLE_SERVICE_ACCOUNT_PATH`: an alternative location for the config file
The simplest way to configure object storage is by creating a json config file like [`/tmp/gcs.json`]:
218
+
219
+
```bash
220
+
$ cat /tmp/gcs.json
221
+
{
222
+
"gcs_base_url": "http://localhost:4443",
223
+
"disable_oauth": true,
224
+
"client_email": "",
225
+
"private_key_id": "",
226
+
"private_key": ""
227
+
}
228
+
```
229
+
230
+
Alternatively, you can use the following environment variables when starting postgres to configure the Google Cloud Storage client:
231
+
-`GOOGLE_SERVICE_ACCOUNT_KEY`: json serialized service account key
232
+
-`GOOGLE_SERVICE_ACCOUNT_PATH`: an alternative location for the config file
233
+
234
+
Supported Google Cloud Storage uri formats are shown below:
235
+
- gs:// \<bucket\> / \<path\>
236
+
215
237
## Copy Options
216
238
`pg_parquet` supports the following options in the `COPY TO` command:
217
239
-`format parquet`: you need to specify this option to read or write Parquet files which does not end with `.parquet[.<compression>]` extension. (This is the only option that `COPY FROM` command supports.),
0 commit comments