From da579f5153f7fa1108091fc18b0761e7a0581c33 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 7 May 2015 15:22:28 +0200 Subject: fixed the rename problem (EEXIST if the destination file exists is wrong, the destination file should get all data and metadata from the source file) --- pgsql.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pgsql.h') diff --git a/pgsql.h b/pgsql.h index abb58ec..918d818 100644 --- a/pgsql.h +++ b/pgsql.h @@ -96,6 +96,8 @@ int psql_truncate( PGconn *conn, const size_t block_size, const int64_t id, cons int psql_rename( PGconn *conn, const int64_t from_id, const int64_t from_parent_id, const int64_t to_parent_id, const char *rename_to, const char *from, const char *to ); +int psql_rename_to_existing_file( PGconn *conn, const int64_t from_id, const int64_t to_id, const char *from_path, const char *to_path ); + size_t psql_get_block_size( PGconn *conn, const size_t block_size ); int64_t psql_get_fs_blocks_used( PGconn *conn ); -- cgit v1.2.3-54-g00ecf