-
Notifications
You must be signed in to change notification settings - Fork 984
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
Feature/timelineid in clone section #1961
base: master
Are you sure you want to change the base?
Changes from 2 commits
8780827
2327062
a2236c6
ffbdb9d
641bb20
baa5b04
15b693c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,8 @@ type CloneDescription struct { | |
S3Endpoint string `json:"s3_endpoint,omitempty"` | ||
S3AccessKeyId string `json:"s3_access_key_id,omitempty"` | ||
S3SecretAccessKey string `json:"s3_secret_access_key,omitempty"` | ||
S3ForcePathStyle *bool `json:"s3_force_path_style,omitempty" defaults:"false"` | ||
S3ForcePathStyle *bool `json:"s3_force_path_style,omitempty" defaults:"false"` | ||
TimelineID string `json:"clone_target_timeline" defaults:"latest"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use go.fmt for right code formatting. This is misaligned. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The type has been changed and the formatting is corrected. |
||
} | ||
|
||
// Sidecar defines a container to be run in the same pod as the Postgres container. | ||
|
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.
type should be integer
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.
Actually the timeline can be characters like A, B etc.. for eg C here: base_0000000C00000001000000A3
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.
But this is not the timeline ID
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.
@Sudeepta92 FxKu is right here. The actual ID can only be an integer. What you see in the WAL archive name is a hex value. So for instance
0000003400000000000000CD
would be timeline_id52
. Nevertheless, one can also specifylatest
orcurrent
in the recovery.conf. Which is default if nothing is set.So I think, you could use and
int32
here.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.
Oh yeahh its a hex value in the end. I will change to int32.
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.
@FxKu @thedatabaseme btw, on changing type to integer back from string it fails when no timeline id is passed as it can no longer receive "latest"/"current".
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.
Ok, so have removed the possibility for string value "latest" and in such a scenario it will calcuate the latest timeline id as integer. You may ignore my previous comment.