Skip to content

Commit 22a7f55

Browse files
committed
v1.6.0
1 parent 494d7ef commit 22a7f55

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to the "PostgreSQL Hacker Helper" extension will be document
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.6.0]
9+
10+
Show text representation of expressions in variables (separate pseudo-member `$expr$`).
11+
12+
Show text representation of expressions contained in `TargetEntry`, `EquivalenceMember` and `RestrictInfo` in description field (old pointer value).
13+
814
## [1.5.1]
915

1016
Update configuration file contents created by command. Set version to 3 and `aliases` member with empty array.

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ Extension knows 53 such elements. I.e. `PlannerInfo->all_relids` or `RelOptInfo-
5050

5151
![Bitmapset references](resources/bitmapset-refs.gif)
5252

53+
### Show Expr in their text representation
54+
55+
In members of `Expr` nodes you can see their text representation.
56+
I.e. for `OpExpr` you will see something like `a.x = 1`.
57+
This works for most of `Exprs`, except *bulky* (`SubPlan`, `Case`, ...).
58+
59+
![Show Exprs text representation](./resources/expr_repr.gif)
60+
61+
Also, there are shortcuts for: `EquivalenceMember`, `RestrictInfo` and `TargetEntry`.
62+
Their expressions are displayed right after their member, so you will not have to keep opening and closing variables to see what's inside.
63+
A quick glance will make it clear what's inside!
64+
65+
![Expressions of equivalence members displayed immediately](./resources/ec_members_exprs.png)
66+
67+
> NOTE: not all and not always `Expr`s will be displayed.
68+
> Some of subtypes just not supported (i.e. `SubPlan` or `Case`).
69+
> Also, for displaying representation it's required to have range table.
70+
> In such cases placeholder is displayed.
71+
5372
### Dump `Node *` state to log
5473

5574
In PostgreSQL there is `pprint(Node *)` which dumps passed Node variable to
@@ -223,6 +242,12 @@ Known issues:
223242

224243
## Release Notes
225244

245+
### 1.6.0
246+
247+
Show expression representation of `Expr` nodes.
248+
249+
Show expression of `TargetEntry`, `EquivalenceMember` and `RestrictInfo` in description field to quick check elements of corresponding arrays.
250+
226251
### 1.5.1
227252

228253
Update contents of created configuration file (by command).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "postgresql-hacker-helper",
33
"displayName": "PostgreSQL Hacker Helper",
44
"description": "Extension to assist Postgres hackers - source code developers",
5-
"version": "1.5.1",
5+
"version": "1.6.0",
66
"engines": {
77
"vscode": "^1.30.0"
88
},

0 commit comments

Comments
 (0)