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
pgbackrest bug on postgresql 15 #2336
Comments
Hi, Could you provide more details? I mean I can't reproduce that issue with PG 15 + pgBR 2.51 installed using PGDG packages on Rocky 9: the backup command works correctly.
Regards |
what flavor of PostgreSQL did you install and how? how did you install pgBackRest? where do you get that error exactly? command when backup execute start it is immediately fail |
Then you're not using official community PostgreSQL, which we only support. You'll need to ask your vendor (
The Kind Regards |
Issue is pertaining to syntax of pg_catalog.pg_backup_start function calling from pgbackrest i guess. It should be select lsn::text as lsn, Instead of select lsn::text as lsn, change: adding ::text |
This syntax works perfectly fine with community version of PostgreSQL. Re-opening the issue to see what @dwsteele thinks about this but imho it doesn't worth changing the query used aiming at a single fork without their maintainers explaining why they would need by i.e. submitting a PR to ask for a change. IMO, my last comment about "ask your vendor support what's wrong with that |
I'm not against adding a cast here since we add them explicitly in many places, but I worry that the fix would be fragile and it may not be the only place that needs changing. It seems like it would be good to find out from the agedb maintainers why this doesn't work. Also -- I worry about just pointing pgbackrest at a fork and expecting it to work. Unless agedb lists pgbackrest as supported and tested backup software, I'd be pretty nervous about using it. |
Response awaited |
Please provide the following information when submitting an issue (feature requests or general comments can skip this):
pgBackRest version: pgBackRest 2.51
PostgreSQL version: 15
Operating system/version - if you have more than one server (for example, a database server, a repository host server, one or more standbys), please specify each: Rocky Linux
Did you install pgBackRest from source or from a package? NO
Please attach the following as applicable:
pgbackrest.conf
file(s)postgresql.conf
settings applicable to pgBackRest (archive_command
,archive_mode
,listen_addresses
,max_wal_senders
,wal_level
,port
)/var/log/pgbackrest
for the commands run (e.g./var/log/pgbackrest/mystanza_backup.log
)Describe the issue:
We found
unable to execute query 'select lsn::text as lsn,
pg_catalog.pg_walfile_name(lsn)::text as wal_segment_name
from pg_catalog.pg_backup_start('pgBackRest backup started at ' || current_timestamp, false) as lsn': ERROR: invalid input syntax for type timestamp with time zone: "pgBackRest backup started at "
LINE 3: from pg_catalog.pg_backup_start('pgBackRest backup started...
The text was updated successfully, but these errors were encountered: