-
Notifications
You must be signed in to change notification settings - Fork 44
Add triggers #51
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
Add triggers #51
Conversation
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
|
This is based off #56 :) |
workingjubilee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good! My commentary is mostly so extensive like this, including some remarks that aren't actually about your code, because I realized that everything that bothered or confused me about the code here is something that
- this PR is not directly responsible for
- I can also probably fix this week
- expressing inclinations may elicit concurrence, disagreement, or other discussion for future direction, so I should do it now.
So I figured I should immediately leave as many notes as possible even if they make this less of a review and more of a running stream. Thus if you have any inclination for commentary on my commentary you are welcome to it, but this is good to merge this as-is and we can address improvements in followups.
| fn #symbol_ident( | ||
| trigger: &::pgx::PgTrigger, | ||
| ) -> core::result::Result< | ||
| ::pgx::heap_tuple::PgHeapTuple<'_, impl ::pgx::WhoAllocated<::pgx::pg_sys::HeapTupleData>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to get back to refactoring the allocation code in PGX, now that it's creeping more into this codebase again.
| #[tracing::instrument(level = "debug", skip_all)] | ||
| pub(crate) fn trigger() -> Self { | ||
| Self::Trigger | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this constructor is mostly for tracing purposes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think also to avoid future me going "Why is there no ctor for this?" as I am known to do.
Requires the experimental
develop-v0.5.0PGX branch locally! Test with:Then: