if (PQstatus (plugin->dbh) != CONNECTION_OK)
{
GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
- "postgres",
+ "datastore-postgres",
_("Unable to initialize Postgres: %s"),
PQerrorMessage (plugin->dbh));
PQfinish (plugin->dbh);
plugin->payload += size;
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Stored %u bytes in database, new payload is %llu\n",
(unsigned int) size,
(unsigned long long) plugin->payload);
{
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Ending iteration (%s)\n",
(GNUNET_YES == nrc->end_it) ? "client requested it" : "completed result set");
#endif
{
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Ending iteration (postgres error)\n");
#endif
nrc->iter (nrc->iter_cls,
/* no result */
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Ending iteration (no more results)\n");
#endif
nrc->iter (nrc->iter_cls,
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Found result of size %u bytes and type %u in database\n",
(unsigned int) size,
(unsigned int) type);
{
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Ending iteration (client error)\n");
#endif
return;
{
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Deleting %u bytes from database, current payload is %llu\n",
(unsigned int) size,
(unsigned long long) plugin->payload);
plugin->payload -= size;
#if DEBUG_POSTGRES
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "postgres",
+ "datastore-postgres",
"Deleted %u bytes from database, new payload is %llu\n",
(unsigned int) size,
(unsigned long long) plugin->payload);
api->iter_all_now = &postgres_plugin_iter_all_now;
api->drop = &postgres_plugin_drop;
GNUNET_log_from (GNUNET_ERROR_TYPE_INFO,
- "postgres", _("Postgres database running\n"));
+ "datastore-postgres",
+ _("Postgres database running\n"));
return api;
}