-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Come up with a rename to clarify aid instance
vs aid
#141
Comments
I think the term |
I have been thinking about this: If you're open to reconsider
|
There is no way to get an unsafe AID value because it's literally impossible without the type adapter. A postgres Datum is an opaque value unless we have type info, which is handled by the AidSpec. |
wait, so what is the hashing for? isn't it there to make the seed pseudo-random? we're turning of hashing only in DEBUG, so I assumed that it is there for some sort of safety |
ah, ok I see what you mean now. nvm |
We need to squash various types into an |
Related to discussions in the PR here and in Slack.
In the code, it is often not clear if
aid
meansaid instance
(so a column or expression) or a value ("instance" 😉) ofaid instance
, being something derived from an AID value. (But it's not really the AID value anymore, because it may have been hashed!)Here is one example of the former: https://github.com/diffix/pg_diffix/blob/master/src/aggregation/count.c#L59
Here is another: https://github.com/diffix/pg_diffix/blob/master/pg_diffix/query/oid_cache.h#L14
Here is an example of the latter: https://github.com/diffix/pg_diffix/blob/master/pg_diffix/aggregation/contribution_tracker.h#L40
The text was updated successfully, but these errors were encountered: