Skip to content

Remove the trigger added in #18260 and then reverted #18373

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

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Apr 29, 2025

See #18260

This is useful for anyone who tried Synapse v1.129.0rc1 out

Fixes #18349

To test:

  • checkout v1.129.0rc1 and start
  • check that the events table has the trigger (\dS events with postgres)
  • checkout this PR and start
  • check that the events table doesn't have the trigger anymore

@sandhose sandhose marked this pull request as ready for review April 29, 2025 15:29
@sandhose sandhose requested a review from a team as a code owner April 29, 2025 15:29
-- <https://www.gnu.org/licenses/agpl-3.0.html>.

-- Removes the trigger that was added in #18260 and then reverted
DROP TRIGGER IF EXISTS event_stats_increment_counts_trigger ON events;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked whether DROP TRIGGER IF EXISTS is valid syntax (it is!) given CREATE TRIGGER IF NOT EXISTS does not work in Postgres

@sandhose sandhose merged commit dbf5b0b into release-v1.129 Apr 30, 2025
39 checks passed
@sandhose sandhose deleted the quenting/cleanup-18260-trigger branch April 30, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants