README.md in pgslice-0.3.2 vs README.md in pgslice-0.3.3
- old
+ new
@@ -261,10 +261,10 @@
### Writes
If you use `INSERT` statements with a `RETURNING` clause (as frameworks like Rails do), you’ll no longer receive the id of the newly inserted record(s) back. If you need this, you can either:
1. Insert directly into the partition
-2. Get the value after the insert with `SELECT CURRVAL('sequence_name')`
+2. Get value before the insert with `SELECT nextval('sequence_name')` (for multiple rows, append `FROM generate_series(1, n)`)
### Reads
When possible, queries should include the column you partition on to limit the number of partitions the database needs to check. For instance, if you partition on `created_at`, try to include it in queries: