summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-05-07 15:22:28 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-05-07 15:22:28 +0200
commitda579f5153f7fa1108091fc18b0761e7a0581c33 (patch)
treeebcfceb3bd98cdd0a93f56eb7d6e38f013c11ad5 /pgsql.h
parent8ac849f21ed34c447d7744cdaf76c3e10d8045cc (diff)
downloadpgfuse-da579f5153f7fa1108091fc18b0761e7a0581c33.tar.gz
pgfuse-da579f5153f7fa1108091fc18b0761e7a0581c33.tar.bz2
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)
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h2
1 files changed, 2 insertions, 0 deletions
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 );