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

Update maintain_partition_queries format #287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drnextgis
Copy link
Collaborator

@drnextgis drnextgis commented Jul 2, 2024

Fixes query_queue table being poorly formatted:

postgis=> select * from pgstac.query_queue;
                                  query                                  |             added             
-------------------------------------------------------------------------+-------------------------------
 SELECT update_partition_stats('_items_19362_202407', 'f');              | 2024-07-02 13:26:12.703653+00
 SELECT update_partition_stats('_items_19363_202407', 'f');              | 2024-07-02 13:26:12.8475+00
 SELECT maintain_index(                                                 +| 2024-07-02 13:34:41.589782+00
                                                                        +| 
                 '_items_19362_202407_end_datetime_idx',NULL,'f','f','f'+| 
                                                                        +| 
             );                                                          | 
 SELECT update_partition_stats('_items_19362_202407', 't');              | 2024-07-02 13:34:41.589782+00
 SELECT maintain_index(                                                 +| 2024-07-02 13:34:41.821157+00
                                                                        +| 
                 '_items_19363_202407_end_datetime_idx',NULL,'f','f','f'+| 
                                                                        +| 
             );

@bitner
Copy link
Collaborator

bitner commented Jul 29, 2024

@drnextgis Hah, I actually prefer the formatting with the line separators as, to me, it's easier to see the full query when the query gets large. Do you have any reason other than just aesthetics to change the formatting here?

@drnextgis
Copy link
Collaborator Author

No, it's just for the aesthetics of the query_queue content.

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