160 log_ereport(LOG_MISCONFIG, "pg_vfs_create: missing resourcepool parameter"); |
160 log_ereport(LOG_MISCONFIG, "pg_vfs_create: missing resourcepool parameter"); |
161 return NULL; |
161 return NULL; |
162 } |
162 } |
163 } |
163 } |
164 |
164 |
165 // get the resource first (most likely to fail due to misconfig) |
165 // get the resource first (most likely failure reason is misconfig) |
166 ResourceData *resdata = resourcepool_lookup(sn, rq, resource_pool, 0); |
166 ResourceData *resdata = resourcepool_lookup(sn, rq, resource_pool, 0); |
167 if(!resdata) { |
167 if(!resdata) { |
168 log_ereport(LOG_MISCONFIG, "postgresql vfs: resource pool %s not found", resource_pool); |
168 log_ereport(LOG_MISCONFIG, "postgresql vfs: resource pool %s not found", resource_pool); |
169 return NULL; |
169 return NULL; |
170 } |
170 } |