From: Marco van Wieringen Date: Sat, 3 Apr 2010 14:23:24 +0000 (+0200) Subject: Fix grant script to set grants on correct sequence names and not PostgreSQL names. X-Git-Tag: Release-7.0.0~2010 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02fe12de48a27d6f06cfcc6742d7e7ff61e19e13;p=bacula%2Fbacula Fix grant script to set grants on correct sequence names and not PostgreSQL names. --- diff --git a/bacula/src/cats/grant_postgresql_privileges.in b/bacula/src/cats/grant_postgresql_privileges.in index 5480903bef..e7219d03cf 100644 --- a/bacula/src/cats/grant_postgresql_privileges.in +++ b/bacula/src/cats/grant_postgresql_privileges.in @@ -37,22 +37,22 @@ grant all on PathHierarchy to ${db_user}; grant all on PathVisibility to ${db_user}; -- for sequences on those tables -grant select, update on filename_filenameid_seq to ${db_user}; -grant select, update on path_pathid_seq to ${db_user}; -grant select, update on fileset_filesetid_seq to ${db_user}; -grant select, update on pool_poolid_seq to ${db_user}; -grant select, update on client_clientid_seq to ${db_user}; -grant select, update on media_mediaid_seq to ${db_user}; -grant select, update on job_jobid_seq to ${db_user}; -grant select, update on file_fileid_seq to ${db_user}; -grant select, update on jobmedia_jobmediaid_seq to ${db_user}; -grant select, update on basefiles_baseid_seq to ${db_user}; -grant select, update on storage_storageid_seq to ${db_user}; -grant select, update on mediatype_mediatypeid_seq to ${db_user}; -grant select, update on device_deviceid_seq to ${db_user}; -grant select, update on location_locationid_seq to ${db_user}; -grant select, update on locationlog_loclogid_seq to ${db_user}; -grant select, update on log_logid_seq to ${db_user}; +grant select, update on filename_seq to ${db_user}; +grant select, update on path_seq to ${db_user}; +grant select, update on fileset_seq to ${db_user}; +grant select, update on pool_seq to ${db_user}; +grant select, update on client_seq to ${db_user}; +grant select, update on media_seq to ${db_user}; +grant select, update on job_seq to ${db_user}; +grant select, update on file_seq to ${db_user}; +grant select, update on jobmedia_seq to ${db_user}; +grant select, update on basefiles_seq to ${db_user}; +grant select, update on storage_seq to ${db_user}; +grant select, update on mediatype_seq to ${db_user}; +grant select, update on device_seq to ${db_user}; +grant select, update on location_seq to ${db_user}; +grant select, update on locationlog_seq to ${db_user}; +grant select, update on log_seq to ${db_user}; END-OF-DATA if [ $? -eq 0 ] then diff --git a/bacula/src/cats/make_ingres_tables.in b/bacula/src/cats/make_ingres_tables.in index e2151fe1f6..379d4d79e6 100755 --- a/bacula/src/cats/make_ingres_tables.in +++ b/bacula/src/cats/make_ingres_tables.in @@ -268,7 +268,6 @@ CREATE TABLE Device ( PRIMARY KEY(DeviceId) ); - CREATE SEQUENCE pool_seq; CREATE TABLE pool ( @@ -343,8 +342,6 @@ CREATE TABLE LocationLog ( PRIMARY KEY(LocLogId) ); - - CREATE TABLE counters ( counter varchar(256) not null, @@ -355,7 +352,6 @@ CREATE TABLE counters primary key (counter) ); - CREATE SEQUENCE basefiles_seq; CREATE TABLE basefiles (