Skip to content

Commit cddfe02

Browse files
committed
corrected the create extension command & fixed capitalization issues
1 parent af59776 commit cddfe02

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

articles/cosmos-db/postgresql/TOC.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
href: reference-extensions.md
228228
- name: Pg_azure_storage
229229
href: reference-pg-azure-storage.md
230+
displayName: pg_azure_storage, extensions
230231
- name: Limits and limitations
231232
href: reference-limits.md
232233
- name: Distributed SQL API

articles/cosmos-db/postgresql/reference-pg-azure-storage.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ author: AvijitkGupta
66
ms.service: cosmos-db
77
ms.subservice: postgresql
88
ms.topic: reference
9-
ms.date: 05/12/2023
9+
ms.date: 05/30/2023
1010
---
1111

1212
# pg_azure_storage extension
1313

1414
[!INCLUDE [PostgreSQL](../includes/appliesto-postgresql.md)]
1515

16-
The pg_azure_storage extension provides extensibility, to seamlessly manipulate and load data in different file formats, to your Azure Cosmos DB for PostgreSQL cluster directly from Azure Blob Storage. Containers with access level “Private” or “Blob” requires adding private access key.
16+
The pg_azure_storage extension allows you to load data in multiple file formats directly from Azure blob storage to your Azure Cosmos DB for PostgreSQL cluster. Containers with access level “Private” or “Blob” requires adding private access key.
1717

1818
You can create the extension from psql by running:
1919
```postgresql
20-
CREATE EXTENSION azure_storage;
20+
SELECT create_extension('azure_storage');
2121
```
2222

2323
## COPY FROM
@@ -171,13 +171,13 @@ The URI for a container is similar to:
171171
`https://myaccount.blob.core.windows.net/mycontainer`
172172

173173
#### prefix
174-
returns file from blob container with matching string initials.
174+
Returns file from blob container with matching string initials.
175175
#### path
176-
full qualified path of Azure blob directory.
176+
Full qualified path of Azure blob directory.
177177
#### bytes
178-
size of file object in bytes.
178+
Size of file object in bytes.
179179
#### last_modified
180-
when was the file content last modified.
180+
When was the file content last modified.
181181
#### etag
182182
An ETag property is used for optimistic concurrency during updates. It isn't a timestamp as there's another property called Timestamp that stores the last time a record was updated. For example, if you load an entity and want to update it, the ETag must match what is currently stored. Setting the appropriate ETag is important because if you have multiple users editing the same item, you don't want them overwriting each other's changes.
183183
#### content_type
@@ -231,9 +231,9 @@ A container name must be a valid DNS name, as it forms part of the unique URI us
231231
#### path
232232
Blob name existing in the container.
233233
#### rec
234-
define the record output structure.
234+
Define the record output structure.
235235
#### decoder
236-
specify the blob format
236+
Specify the blob format
237237
Decoder can be set to auto (default) or any of the following values
238238
#### decoder description
239239
| **Format** | **Description** |
@@ -244,9 +244,9 @@ Decoder can be set to auto (default) or any of the following values
244244
| text | A file containing a single text value (for example, large JSON or XML) |
245245

246246
#### compression
247-
defines the compression format. Available options are `auto`, `gzip` & `none`. The use of the `auto` option (default), guesses the compression based on the file extension (.gz == gzip). The option `none` forces to ignore the extension and not attempt to decode. While gzip forces using the gzip decoder (for when you have a gzipped file with a non-standard extension). We currently don't support any other compression formats for the extension.
247+
Defines the compression format. Available options are `auto`, `gzip` & `none`. The use of the `auto` option (default), guesses the compression based on the file extension (.gz == gzip). The option `none` forces to ignore the extension and not attempt to decode. While gzip forces using the gzip decoder (for when you have a gzipped file with a non-standard extension). We currently don't support any other compression formats for the extension.
248248
#### options
249-
for handling custom headers, custom separators, escape characters etc., `options` works in similar fashion to `COPY` command in PostgreSQL, parameter utilizes to blob_get function.
249+
For handling custom headers, custom separators, escape characters etc., `options` works in similar fashion to `COPY` command in PostgreSQL, parameter utilizes to blob_get function.
250250

251251
### Return Type
252252
SETOF Record

0 commit comments

Comments
 (0)