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
- SSL/TLS encryption when certificates are provided
87
-
- Query-level permission checking
88
-
89
77
### The CLI `datafusion-postgres-cli`
90
78
91
-
Command-line tool to serve JSON/CSV/Arrow/Parquet/Avro files as PostgreSQL-compatible tables.
79
+
Command-line tool to serve JSON/CSV/Arrow/Parquet/Avro files as
80
+
PostgreSQL-compatible tables. This is like a `SimpleHTTPServer` for hosting data
81
+
files, but with Postgres protocol and datafusion query engine.
92
82
93
83
```
94
84
datafusion-postgres-cli 0.6.1
@@ -114,7 +104,7 @@ OPTIONS:
114
104
--tls-key <tls-key> Path to TLS private key file for SSL/TLS encryption
115
105
```
116
106
117
-
#### 🔒 Security Options
107
+
#### Security Options
118
108
119
109
```bash
120
110
# Run with SSL/TLS encryption
@@ -127,7 +117,7 @@ datafusion-postgres-cli \
127
117
datafusion-postgres-cli --csv data:sample.csv
128
118
```
129
119
130
-
## 📋 Example Usage
120
+
## Example Usage
131
121
132
122
### Basic Example
133
123
@@ -145,8 +135,6 @@ Listening on 127.0.0.1:5432 (unencrypted)
145
135
146
136
### Connect with psql
147
137
148
-
> **🔐 Authentication**: The default setup allows connections without authentication for development. For secure deployments, use `DfAuthSource` with standard pgwire authentication handlers (cleartext, MD5, or SCRAM). See `auth.rs` for implementation examples.
149
-
150
138
```bash
151
139
psql -h 127.0.0.1 -p 5432 -U postgres
152
140
```
@@ -179,7 +167,7 @@ postgres=> COMMIT;
179
167
COMMIT
180
168
```
181
169
182
-
### 🔐 Production Setup with SSL/TLS
170
+
### SSL/TLS
183
171
184
172
```bash
185
173
# Generate SSL certificates
@@ -199,6 +187,13 @@ TLS enabled using cert: server.crt and key: server.key
199
187
Listening on 127.0.0.1:5432 with TLS encryption
200
188
```
201
189
190
+
## PostGIS/Geodatafusion
191
+
192
+
With [geodatafusion](https://github.com/datafusion-contrib/geodatafusion), we
193
+
can also simulate PostGIS interface (UDF and datatypes) with
194
+
datafusion-postgres. To enable this feature, turn on the feature flag `postgis`
0 commit comments