From a bit of googling, it looks like this might be Drupal's fault in that it doesn't keep going when a statement within a transaction fails. Nevertheless, this probably shouldn't crash. It prevents the creation of any new users. Here's the error message I get from Drush (same thing from the web):
PDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, [error]
commands ignored until end of transaction block: SELECT column_name, data_type, column_default FROM
information_schema.columns WHERE table_schema = :schema AND table_name = :table AND (data_type = 'bytea' OR
(numeric_precision IS NOT NULL AND column_default LIKE :default)); Array
(
[:schema] => public
[:table] => url_alias
[:default] => %nextval%
)
in drupal_write_record() (line 7166 of /var/www/example.com/www/public/includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#3 | 2083065-postgres-string-int-transaction-killing-error.patch | 440 bytes | John Franklin |
Comments
Comment #1
John Franklin CreditAttribution: John Franklin commentedI get the same thing using BlogAPI to post new blog entries.
Comment #2
John Franklin CreditAttribution: John Franklin commentedThe actual error is a previous SQL statement that fails. My postgres log includes the following error:
Comment #3
John Franklin CreditAttribution: John Franklin commentedHere's a fix that works for my blogapi issue. @mjorlitzky, if this also fixes your issue, then we should file this as a core bug. Apply this patch to core.
Comment #4
orlitzky CreditAttribution: orlitzky commentedI still get the same error I'm afraid.
Comment #5
John Franklin CreditAttribution: John Franklin commentedDo you have any errors in your postgres logs?
Comment #6
orlitzky CreditAttribution: orlitzky commentedYep, same error it looks like (I tried before patching, too).