aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
AgeCommit message (Collapse)Author
2018-06-07paragraph for gnunet devs that don't know how to use the webpsyc://loupsycedyglgamf.onion/~lynX
2018-06-07glitch in the license text detected by hyazinthe, thank you!psyc://loupsycedyglgamf.onion/~lynX
2018-06-06better indentation, nicer formatting of SQLChristian Grothoff
2018-06-05first batch of license fixes (boring)psyc://loupsycedyglgamf.onion/~lynX
2017-06-11rename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatusChristian Grothoff
2017-06-04finish datastore pq refactoringChristian Grothoff
2017-06-03more pq workChristian Grothoff
2017-06-01adding more good helpers to libgnunetpqChristian Grothoff
2017-04-16[datastore] Create remove plugin API callDavid Barksdale
The only use of vhash in the get_key call was for removing, split that out into its own function. This simplifies the get_key call and removes the need for some indexes, speeding up insertion into the database.
2017-04-16[datastore] Combine put and update plugin APIsDavid Barksdale
This resolves issue #4965.
2017-03-22[datastore] Return and update replicationDavid Barksdale
This fixes a couple FIXMEs in the datastore code. The replication value is now returned from the datastore and the update function can increase the replication.
2017-03-19[datastore] Fix #3743David Barksdale
This change adds support for key == NULL to the datastore plugins and replaces the offset argument with a next_uid and random arguments to increase performance in the key == NULL case. With the offset argument a datastore plugin would have to count all matching keys before fetching the key at the right offset, which would iterate over the entire database in the case of key == NULL. The offset argument was used in two ways: to iterate over a set of matching values and to start iteration at a random matching value. The new API seperates these into two arguments: if random is true it will return a random matching value, otherwise next_uid can be set to uid + 1 to return the next matching value. The random argument was not added to get_zero_anonymity. This function is used to periodically insert zero anonymity values into the DHT. I don't think it's necessary to randomize this.
2017-03-09we use CREATE INDEX IF NOT EXITS, this requires postgres>=9.6, bump ↵Christian Grothoff
dependency requirements
2017-02-20Restrict update to positive priority deltasDavid Barksdale
This is only ever called with positive values and the mysql and postgres plugins were not handling negative values correctly anyway.
2016-10-13datastore: postgres: use IF NOT EXISTS to avoid error messagesDaniel Golle
2016-07-08-avoid calling memcpy() with NULL argument, even if len is 0Christian Grothoff
2016-03-14-bugfix, adding comments, fixing indentChristian Grothoff
2016-02-06make some more use of libgnunetpqChristian Grothoff
2016-01-19-fix (C) noticesChristian Grothoff
2015-06-30fix #3869: outdated FSF addressChristian Grothoff
2015-03-21Convert datastore plugin API to asynchronousDavid Barksdale
2015-02-07-bringing copyright tags up to FSF standardChristian Grothoff
2015-01-06Workaround emscripten bug in returning int64_tDavid Barksdale
Emscripten can't return a 64-bit integer from dynamically loaded code.
2014-08-08Include libpq-fe.h instead of postgres/libpq-fe.h.Sree Harsha Totakura
Also add a macro for checking libpq from Autoconf macro archives.
2014-06-08-doxygenChristian Grothoff
2013-12-19malloc -> newLRN
2013-10-06-remove trailing whitespaceChristian Grothoff
2013-08-11changing time measurement from milliseconds to microsecondsChristian Grothoff
2012-06-12-consistently use struct GNUNET_HashCodeChristian Grothoff
2012-04-02-fixChristian Grothoff
2012-04-01-removing legacy #ifdefsChristian Grothoff
2012-03-23-doxygenChristian Grothoff
2012-03-23-check return codeChristian Grothoff
2012-03-22adding libgnunetpostgres for shared postgres functionality between postgres ↵Christian Grothoff
datastore/datacache backends
2012-03-22-docsChristian Grothoff
2011-12-17-implementing get_keys for postgresChristian Grothoff
2011-10-04LRN: Use GNUNET_EXTRA_LOGGING to manage compile-time logging callsChristian Grothoff
(#1805).
2011-09-02doxygenChristian Grothoff
2011-08-29run indent twice, it alternates between two 'canonical' forms, also run ↵Christian Grothoff
whitespace remover
2011-08-15indentationChristian Grothoff
2011-08-15indentationChristian Grothoff
2011-08-02use postgres PRNG also on insertionChristian Grothoff
2011-07-16voidretChristian Grothoff
2011-06-13doxygenChristian Grothoff
2011-06-10fixing datastore schema for future change for improved performanceChristian Grothoff
2011-05-06fixChristian Grothoff
2011-04-26datastore and fs fixes from EasterChristian Grothoff
2011-04-15fixesChristian Grothoff
2011-04-15fixesChristian Grothoff
2011-04-04removing dead API callsChristian Grothoff