Jira (PDB-1130) mechanism to apply non-migration database operations across subsequent upgrades

3 views
Skip to first unread message

Wyatt Alt (JIRA)

unread,
Jan 23, 2015, 1:02:56 PM1/23/15
to puppe...@googlegroups.com
Wyatt Alt created an issue
 
PuppetDB / New Feature PDB-1130
mechanism to apply non-migration database operations across subsequent upgrades
Issue Type: New Feature New Feature
Affects Versions: PDB 2.2.2
Assignee: Unassigned
Created: 2015/01/23 10:02 AM
Priority: Normal Normal
Reporter: Wyatt Alt

Customer success sometimes runs manual operations on customer databases, such as CLUSTER in the context of PDB-959. These changes can be lost during upgrades, so to ensure the effects are retained we should formalize a way to track them and hook them into the migration process.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Kenneth Barber (JIRA)

unread,
Jan 26, 2015, 5:59:53 AM1/26/15
to puppe...@googlegroups.com

Russell Mull (JIRA)

unread,
May 17, 2017, 2:27:03 PM5/17/17
to puppe...@googlegroups.com
Russell Mull commented on New Feature PDB-1130
 
Re: mechanism to apply non-migration database operations across subsequent upgrades

Charlie Sharpsteen Nick Walker Care to comment on this? I could see adding a "post-migrate.d" dir full of sql scripts or something, but would like to collect some actual use cases first.

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Russell Mull (JIRA)

unread,
May 17, 2017, 2:27:04 PM5/17/17
to puppe...@googlegroups.com

Charlie Sharpsteen (JIRA)

unread,
May 17, 2017, 3:38:04 PM5/17/17
to puppe...@googlegroups.com
Charlie Sharpsteen commented on New Feature PDB-1130
 
Re: mechanism to apply non-migration database operations across subsequent upgrades

The one thing I can think of off the top of my head is that an upgrade might be a good window to run some general maintenance like re-building indices. Nick has some of this in his pe_databases module:

https://github.com/npwalker/pe_databases#maintenance

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:56:28 PM5/18/17
to puppe...@googlegroups.com

Nick Walker (JIRA)

unread,
May 22, 2017, 6:11:03 PM5/22/17
to puppe...@googlegroups.com
Nick Walker commented on New Feature PDB-1130
 
Re: mechanism to apply non-migration database operations across subsequent upgrades

The way I've been handling this so far is via puppet code.

https://github.com/npwalker/pe_databases/blob/master/manifests/postgresql_settings.pp

https://github.com/npwalker/pe_databases/blob/add_fillfactor_setting_to_indexes/manifests/postgresql_settings/index_settings.pp

The original case that's mentioned around CLUSTER turned out to not be specific to CLUSTER but to rebuilding the table. I'm not sure we have a need for this?

We do have a need to make indexes sometimes but I think that's also better handled by puppet code.

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:56:09 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
 
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages