|
5 | 5 | // and verified against source code in questdb/ and questdb-enterprise/. |
6 | 6 | // |
7 | 7 | // Categories used for context-aware autocomplete: |
8 | | -// - scalarFunctions — single-row functions (FROM functions() type=STANDARD) |
9 | | -// - aggregateFunctions — collapse rows (type=GROUP_BY); also valid as windows |
10 | | -// - windowFunctions — pure ranking/offset (type=WINDOW, no GROUP_BY overload) |
| 8 | +// - scalarFunctions — single-row functions (FROM functions() type=STANDARD) |
| 9 | +// - aggregateFunctions — collapse rows (type=GROUP_BY); also valid as windows |
| 10 | +// - windowFunctions — pure ranking/offset (type=WINDOW, no GROUP_BY overload) |
11 | 11 | // - tableValuedFunctions — return rows (type=CURSOR, or STANDARD that succeeds |
12 | | -// in `SELECT * FROM <name>()` — meta pseudo-tables like `materialized_views`) |
| 12 | +// in `SELECT * FROM <name>()` — meta pseudo-tables like `materialized_views`, |
| 13 | +// plus PostgreSQL-compat catalog entries like `pg_class` and `pg_catalog.*`. |
| 14 | +// The pg_-prefixed entries are gated at emission time by the suggestion- |
| 15 | +// builder: they only surface when the user has typed a "pg" prefix, so the |
| 16 | +// letter "p" alone doesn't bury real schema results in JOIN positions. |
| 17 | +// `information_schema.*` is NOT gated — those names are SQL-standard. |
13 | 18 | // |
14 | 19 | // Removed from earlier flat list: 17 entries absent from QuestDB runtime AND |
15 | 20 | // docs (e.g. `array_agg`, `lcase`, `len`, `nvl`, `headers`, `show`, |
@@ -181,7 +186,6 @@ export const scalarFunctions: string[] = [ |
181 | 186 | "sysdate", |
182 | 187 | "systimestamp", |
183 | 188 | "systimestamp_ns", |
184 | | - "table_columns", |
185 | 189 | "tan", |
186 | 190 | "timestamp_ceil", |
187 | 191 | "timestamp_floor", |
@@ -210,7 +214,6 @@ export const scalarFunctions: string[] = [ |
210 | 214 | "typeOf", |
211 | 215 | "upper", |
212 | 216 | "version", |
213 | | - "wal_transactions", |
214 | 217 | "week_of_year", |
215 | 218 | "within", |
216 | 219 | "within_box", |
@@ -332,11 +335,13 @@ export const tableValuedFunctions: string[] = [ |
332 | 335 | "pg_proc", |
333 | 336 | "query_activity", |
334 | 337 | "reader_pool", |
| 338 | + "table_columns", |
335 | 339 | "table_storage", |
336 | 340 | "table_writer_metrics", |
337 | 341 | "tables", |
338 | 342 | "views", |
339 | 343 | "wal_tables", |
| 344 | + "wal_transactions", |
340 | 345 | "writer_pool", |
341 | 346 | ] |
342 | 347 |
|
|
0 commit comments