Skip to content
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

Fix quoting owners in sql scripts. #5906

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Conversation

mrksngl
Copy link
Contributor

@mrksngl mrksngl commented Jul 31, 2023

When referring to a role from a string type, it must be properly quoted using pg_catalog.quote_ident before it can be casted to regrole. Fixed this, especially in update scripts.

See also #5900

@CLAassistant
Copy link

CLAassistant commented Jul 31, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

@fabriziomello, @jnidzwetzki: please review this pull request.

Powered by pull-review

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #5906 (70cd3b0) into main (d5268c3) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5906      +/-   ##
==========================================
- Coverage   79.54%   79.48%   -0.07%     
==========================================
  Files         239      239              
  Lines       49046    48863     -183     
  Branches    12299    12244      -55     
==========================================
- Hits        39014    38839     -175     
- Misses       4203     4234      +31     
+ Partials     5829     5790      -39     

see 35 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

When referring to a role from a string type, it must be properly quoted
using pg_catalog.quote_ident before it can be casted to regrole.
Fixed this, especially in update scripts.
@nikkhils nikkhils merged commit 5cf354e into timescale:main Aug 4, 2023
33 of 34 checks passed
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Aug 4, 2023
@konskov konskov added this to the TimescaleDB 2.11.2 milestone Aug 8, 2023
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.0 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features
**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation
**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features
**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation
**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
@konskov konskov mentioned this pull request Aug 9, 2023
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5909 CREATE INDEX ONLY ON hypertable creates index on chunks
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit that referenced this pull request Aug 9, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #5923 Feature flags for TimescaleDB features

**Bugfixes**
* #5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* #5774 Fixed two bugs in decompression sorted merge code
* #5786 Ensure pg_config --cppflags are passed
* #5906 Fix quoting owners in sql scripts.
* #5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 10, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit to konskov/timescaledb that referenced this pull request Aug 10, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#5923 Feature flags for TimescaleDB features

**Bugfixes**
* timescale#5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* timescale#5774 Fixed two bugs in decompression sorted merge code
* timescale#5786 Ensure pg_config --cppflags are passed
* timescale#5906 Fix quoting owners in sql scripts.
* timescale#5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit that referenced this pull request Aug 10, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #5923 Feature flags for TimescaleDB features

**Bugfixes**
* #5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* #5774 Fixed two bugs in decompression sorted merge code
* #5786 Ensure pg_config --cppflags are passed
* #5906 Fix quoting owners in sql scripts.
* #5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
svenklemm pushed a commit that referenced this pull request Aug 15, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #5923 Feature flags for TimescaleDB features

**Bugfixes**
* #5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* #5774 Fixed two bugs in decompression sorted merge code
* #5786 Ensure pg_config --cppflags are passed
* #5906 Fix quoting owners in sql scripts.
* #5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
konskov added a commit that referenced this pull request Aug 16, 2023
This release contains bug fixes since the 2.11.1 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #5923 Feature flags for TimescaleDB features

**Bugfixes**
* #5680 Fix DISTINCT query with JOIN on multiple segmentby columns
* #5774 Fixed two bugs in decompression sorted merge code
* #5786 Ensure pg_config --cppflags are passed
* #5906 Fix quoting owners in sql scripts.
* #5912 Fix crash in 1-step integer policy creation

**Thanks**
* @mrksngl for submitting a PR to fix extension upgrade scripts
* @ericdevries for reporting an issue with DISTINCT queries using
segmentby columns of compressed hypertable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants