threads
listlengths
1
2.99k
[ { "msg_contents": "Hi folks,\n\nI am running a 9.0.3 Hot Standy + Streaming Replication slave which\noccasionally segfaults (every 1-2 days). I rebuilt Postgres with\n--enable-cassert and --enable-debug, switched on core dumping and\nwaited for some results.\n\nThe first crash since enabling debugging was a fa...
[ { "msg_contents": "The attached, applied patch preserves\npg_largeobject_metadata.relfrozenxid in pg_upgrade.\n\nThis is needed only in 9.1 because only 9.0 had this table and no one is\nupgrading from a 9.0 beta to 9.0 anymore. We basically don't backpatch\n9.0 beta fixes at this point.\n\n-- \n Bruce Momjia...
[ { "msg_contents": "I'm getting some pressure at Red Hat to back-patch this fix:\nhttp://archives.postgresql.org/pgsql-committers/2009-08/msg00068.php\n(commit dcb2bda9b7042dbf43f876c94ebf35d951de10e9)\ninto the RHEL 8.4.x postgresql release. Since I have to do the work\nanyway, it seems to me to be sensible to...
[ { "msg_contents": "-------- Original Message --------\nSubject: [TESTERS] [PostgreSQL 9.1 alpha5] OpenBSD and Loongson\nDate: Thu, 7 Apr 2011 16:22:46 +0200\nFrom: postgresql@raveland.org\nTo: pgsql-testers@postgresql.org\n\nHi,\n\nI need the following patch to make PostgreSQL happy\non Loongson with OpenBSD (h...
[ { "msg_contents": "Hi!\n\nWe need to get a headcount for the PL Summit at PgCon on Saturday, May\n21, 2011.\n\nPlease sign up using this form: http://chesnok.com/u/1r\n\nA wiki page has been started here:\n\nhttp://wiki.postgresql.org/wiki/PgCon_2011_PL_Summit\n\nWe're also working on updating this page:\nhttp:...
[ { "msg_contents": "Random thought: Wouldn't it be better if there were a setting in psql\nthat set the linestyle to unicode only if the client encoding was\nactually UTF8? This might become more relevant as we set the client\nencoding automatically in psql in 9.1. Then a setting of, say,\n\"unicode-auto\" wou...
[ { "msg_contents": "Peter Eisentraut <peter_e@gmx.net> wrote:\n \n> Wouldn't it be better if there were a setting in psql that set the\n> linestyle to unicode only if the client encoding was actually\n> UTF8?\n \nIs UTF8 the only client encoding in which we currently support the\nUnicode character set?\n \n-Kevi...
[ { "msg_contents": "Seeing that 9.1-to-9.1 pg_upgrade has apparently been broken for months,\nit would probably be good to have some kind of automatic testing for it.\nAttached is something I hacked together that at least exposes the\ncurrent problems, easily available by typing \"make check\" and waiting.\nIt d...
[ { "msg_contents": "\nIt appears that the command processor on Windows 7 has a few quirks that \nwe need to deal with. If you see odd buildfarm or MSVC build script \nfailures on W7 that's a likely cause. I'm digging further and should \nhave some fixes before long.\n\ncheers\n\nandrew\n", "msg_date": "Thu, ...
[ { "msg_contents": "Hi,\n\nI read the discussion at \n\n\nhttp://archives.postgresql.org/pgsql-hackers/2011-01/msg00315.php \n\n\nFrom what I can understand, going from/to unlogged to/from logged in\nthe wal_level == minimal case is not too complicated. \n\nSuppose I try to write a patch that allows \n\nALTER TA...
[ { "msg_contents": "Hi there,\n\nI'm interesting if other databases provides built-in effective \nknn search ? Google didn't help me.\n\n \tRegards,\n \t\tOleg\n_____________________________________________________________\nOleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),\nSternberg Astrono...
[ { "msg_contents": "hello all ...\n\ngiven oleg's posting before i also wanted to fire up some KNN related question.\nlet us consider a simple example. i got some million lines and i want all rows matching a tsquery sorted by price.\ni did some tests:\n\ntest=# explain (analyze true, buffers true, costs true) SE...
[ { "msg_contents": "Hi,\n\nWhile using the vacuumlo utility I encountered a redundant carriage\nreturn(\\r') character in the output. It is required in any scenario? If not,\nplease find attached a tiny patch which will get rid of that extra '\\r'\ncharacter.\n\nRegards,\nUsama", "msg_date": "Fri, 8 Apr 2011...
[ { "msg_contents": "There is an open item for synchronous replication and smart shutdown,\nwith a link to here:\n\nhttp://archives.postgresql.org/pgsql-hackers/2011-03/msg01391.php\n\nThe issue is not straightforward, however, so I want to get some\nbroader input before proceeding. In short, the problem is that...
[ { "msg_contents": "Dear Hackers,\n\nA gin index created on an initially empty table will never get used\nuntil the table is vacuumed, which for a table with no update or\ndelete activity could be forever unless someone manually intervenes.\n\n\nThe problem is that numEntries in src/backend/utils/adt/selfuncs.c ...
[ { "msg_contents": "So, we talked about running pgindent a few weeks ago, but reading over\nthe thread, I guess we're still waiting for Andrew to update the list\nof typedefs?\n\nIt would be really nice to get this done. Andrew, is there any chance\nyou can knock that out?\n\n-- \nRobert Haas\nEnterpriseDB: htt...
[ { "msg_contents": "I've noticed that psql's \\dO command for showing collations is a bit\nschizophrenic about whether it shows entries for collations that are\nirrelevant in the current database (because they use a different\nencoding). For example:\n\nregression=# \\dOS aa*\n List of c...
[ { "msg_contents": "This seems like a place where there is room for improvement.\n\n2011-04-09 15:18:08.016 testdb=# select id from test1 where id < 3 order \nby id;\n id\n----\n 1\n 2\n(2 rows)\n\nTime: 0.328 ms\n2011-04-09 15:18:11.936 testdb=# CREATE or Replace FUNCTION testsort(id \ninteger) returns int...
[ { "msg_contents": "All,\n\nWe left this out of 9.0; let's not leave it out of 9.1. We need an example \"replication\" line in pg_hba.conf, commented out. e.g.\n\n# host replication all samenet md5\n\nAlso, what happened to having a \"replication\" user defined by default? We talked this to death la...
[ { "msg_contents": "All,\n\nIf I have the following line in pg_hba.conf:\n\nhost replication replication all md5\n\npg_basebackup -x -v -P -h master1 -U replication -D $PGDATA\npg_basebackup: could not connect to server: FATAL: no pg_hba.conf entry for replication connecti...
[ { "msg_contents": "Magnus, all:\n\nIt seems a bit annoying to have to do an rm -rf * $PGDATA/ before resynching a standby using pg_basebackup. This means that I still need to wrap basebackup in a shell script, instead of having it do everything for me ... especially if I have multiple tablespaces.\n\nCouldn't ...
[ { "msg_contents": "Since ILIKE now responds to collations, it would be nice if the\ncase-insensitive regex operators did too. The hard part of that is\ngetting the information from src/backend/utils/adt/regexp.c to\nsrc/backend/regex/regc_locale.c. In principle we could probably add\na field to the data struc...
[ { "msg_contents": "Hello all,\n\nI was going through some papers related to sorting and since I am\nstudying PG code side by side, I wondered how sorting would be done on a\nDB with millions of rows on disk with GBs of data. Since holding\neverything in memory would not be the possible solution, how do we\nactu...
[ { "msg_contents": "While looking at the typed table/pg_upgrade problem, I ran into a few smaller\nproblems in the area. I'm not envisioning a need for much code shift to fix\nthem, but there are a few points of policy.\n\n* Table row types used in typed tables vs. ALTER TABLE\nAs previously noted:\n CREATE TA...
[ { "msg_contents": "In view of the recently-discovered data loss bug in pg_upgrade,\nit seems imperative to push out update releases fixing that as soon\nas possible. The core team has therefore decided to wrap back-branch\nupdate releases this Thursday for release Monday 4/18.\n\nWe were previously targeting w...
[ { "msg_contents": "Don't make \"replication\" magical as a user name, only as a database name, in pg_hba.conf.\n\nPer gripe from Josh Berkus.\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdiff/ed557a373c406bbb2a1843544ebbd856ca4cac47\n\nModified Files\n--------------\nsrc/bac...
[ { "msg_contents": "All,\n\nSo I've finally been able to do some testing, and I'll report that\ncurrently there is way I've found to get existing standbys to subscribe\nto a new master.\n\nNo matter what I do in recovery.conf, it results in errors and failure\nto replicate.\n\nTest setup:\n\thosts: master1, mast...
[ { "msg_contents": "Does anybody know what's going on?\n--\nTatsuo Ishii\nSRA OSS, Inc. Japan\nEnglish: http://www.sraoss.co.jp/index_en.php\nJapanese: http://www.sraoss.co.jp\n", "msg_date": "Mon, 11 Apr 2011 17:42:25 +0900 (JST)", "msg_from": "Tatsuo Ishii <ishii@postgresql.org>", "msg_from_op": tr...
[ { "msg_contents": "Maybe already known or in scheduled maintenance but developer.postgresql.org \nseems to be down right now.\n\n-- \nAlbert Cervera i Areny\nhttp://www.NaN-tic.com\nOpenERP Partners\nTel: +34 93 553 18 03\nskype: nan-oficina\n\nhttp://twitter.com/albertnan \nhttp://www.nan-tic.com/blog\n\n\nMay...
[ { "msg_contents": "Hi,\nCan anyone know how to define global variable in plpgsql?\nThanks\n\nRegards,\nRaj\n\nHi,Can anyone know how to define global variable in plpgsql? ThanksRegards,Raj", "msg_date": "Mon, 11 Apr 2011 17:03:52 +0530", "msg_from": "Nick Raj <nickrajjain@gmail.com>", "msg_from_op":...
[ { "msg_contents": "Dear all:\nI am ready to release a client/server software (in windows xp),sure it's\npostgresql based application\nbut I have to hide the password for sensitive data.\nI found that,if user modified the pg_hba.conf, modified the \"METHOD\"field\nfrom md5 to \"password\"\nthen,user can find out...
[ { "msg_contents": "Hi.\n\nThis seem a bit strange to me. In short:\n\n2 tables, one with has a foreign key to the other one;\n\nCREATE TABLE test (id SERIAL primary key, data text);\nCREATE TABLE testref(id SERIAL primary key, test_id integer references \ntest(id) not null, data text);\nINSERT INTO test(data) v...
[ { "msg_contents": "The fact that the collations patch put fn_collation into FmgrInfo,\nrather than FunctionCallInfo, has been bothering me for awhile. The\ncollation is really a kind of argument, not a property of the function,\nso FmgrInfo is logically the wrong place for it. But I'd not found a\nconcrete re...
[ { "msg_contents": "Hi,\nSuppose I create a table as follows:\n\nCREATE TABLE test2 (name TEXT, age INTEGER) WITH oids;\n\nNow, for every tuple in this table is associated with a unique oid, which I can retrieve by:\n\nSELECT oid, name, age FROM test2;\n\nwhich works great. So far so good.\n\nNow, if look at the...
[ { "msg_contents": "Hi!\n\nDoes postgre execute the queries following a execution plan tree, where the\nleafs are table scans, and the nodes are joins?\n\nI'm looking for a database where I can get a cardinality from a partial\nresult of the execution... for example, print the cardinality of the results\nuntil t...
[ { "msg_contents": "I'm trying to call MATLAB functions from PostgreSQL. I was trying to use Joshua Kaplan's java MATLAB control. I install my jar file which in turn calls MATLAB to run my algorithm, but get the error message \"ERROR: java.lang.NoClassDefFoundError: matlabcontrol/RemoteMatlabProxyFactory\" when...
[ { "msg_contents": "Also add some regression tests for that behaviour.\n\nFound after seing a report about it in IRC by Daniel Grace.\n---\n src/backend/commands/user.c | 3 +-\n src/test/regress/expected/privileges.out | 35 ++++++++++++++++++++++++++++\n src/test/regress/sql/privileges.sql ...
[ { "msg_contents": "The code we added recently to the stack-depth check to also check the \nregister stack on ia64 doesn't compile on HP-UX B.11.31, using the HP \naCC compiler:\n\ncc -Ae +O2 -g -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -c -o \npostgres.o postgres.c\n\"postgres.c\", line 3002: warning #2...
[ { "msg_contents": "The attached patches fixes a pg_upgrade crash in 9.0 caused by a new\ncluster database that doesn't exist in the old cluster; instead throw\nan error. This was reported to me by EnterpriseDB testing staff. This\nbug does not exist in git head.\n\n-- \n Bruce Momjian <bruce@momjian.us> ...
[ { "msg_contents": "pg_regress supports a --multibyte option, which can also be invoked\nusing the MULTIBYTE make variable when you run make check. I think this\nis fairly unknown, but we are now documenting it as part of how to run\nthe collation regression tests. I think it would also be useful in the\nPL/Py...
[ { "msg_contents": "An off-list discussion with Leo Carson of SDSC led to the following\ntest case, which reproducibly crashes 8.4:\n\n-- do this in the regression database, or use some other base table\ncreate or replace view vv as\nselect a.unique1, b.unique2, c.tenthous, 'label'::text as lab\nfrom tenk1 a\nle...
[ { "msg_contents": "This week several list regulars here waded into the MySQL Convention. I \ndecided to revisit PostgreSQL vs. MySQL performance using the sysbench \nprogram as part of that. It's not important to what I'm going to \ndescribe to understand exactly what statements sysbench runs here or how \nto...
[ { "msg_contents": "Hello\n\nI have a problem with PQputCopyData function. It doesn't signal some error.\n\n\t\twhile ((row = mysql_fetch_row(res)) != NULL)\n\t\t{\n\t\t\tsnprintf(buffer, sizeof(buffer), \"%s%s\\n\", row[0], row[1]);\n\t\t\tcopy_result = PQputCopyData(pconn, buffer, strlen(buffer));\n\t\t\tprint...
[ { "msg_contents": "I discovered while fooling around the other night that the named\nrestore point patch introduced a small bug into recoveryStopsHere():\nthe test at the top of the function now lets through two\nresource-manager IDs rather than one, but the remainder of the\nfunction tests only the record_info...
[ { "msg_contents": "Rename pg_regress option --multibyte to --encoding\n\nAlso refactor things a little bit so that the same methods for setting\ntest locale and encoding can be used everywhere.\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdiff/f536d4194293f900577c728bfa4e620...
[ { "msg_contents": " Hello,\n\n If I may, I want to share some concept to use mmap in PG. It's far, far \n away from perfect, but it's keeps WAL before data. As well I crated \n table, with index, inserted few values, and I done vacuum full on this \n table. Db inits welcome from orginal sources.\n\n Performance...
[ { "msg_contents": "setlocale() on Windows doesn't work correctly if the locale name contains\napostrophes or dots. There isn't much hope of Microsoft fixing it any time\nsoon, it's been like that for ages, so we better work around it. So, map a\nfew common Windows locale names known to cause problems to aliases...
[ { "msg_contents": "I've been able to reproduce the syndrome reported here and here:\nhttp://archives.postgresql.org/pgsql-performance/2011-02/msg00497.php\nhttp://archives.postgresql.org/pgsql-general/2011-04/msg00487.php\n\nIt's a bit tricky to do it reliably, but once you get into the right\nstate it's reprod...
[ { "msg_contents": "Using pg_regress --encoding sets both the server encoding of the test\ndatabase and the client encoding. (The choice of server encoding is\nfurther constrained by locale, but that's a different issue.)\n\nLooking at the expected variants of the pesky plpython_unicode test\n\nplpython_unicode...
[ { "msg_contents": "Why in the world is reindex_relation defined like this?\n\n#define REINDEX_CHECK_CONSTRAINTS\t0x1\n#define REINDEX_SUPPRESS_INDEX_USE\t0x2\nextern bool reindex_relation(Oid relid, bool toast_too, int flags);\n\nSeems like a rational design would have folded toast_too in as another\nflag bit, ...
[ { "msg_contents": "Right at the moment, ALTER INHERIT doesn't verify that collations match\nin a proposed inheritance child. So you can do this:\n\nregression=# create table foo (f1 text collate \"C\");\nCREATE TABLE\nregression=# create table bar (f1 text collate \"POSIX\");\nCREATE TABLE\nregression=# alter ...
[ { "msg_contents": "The attached code patch (seems to work, but no regression tests or doc\nfixes yet) allows plpgsql variable declarations like\n\n\tdeclare\n\t x text collate \"en_US\";\n\nSuch a collation spec overrides the default variable collation that is\notherwise inherited from the function's input col...
[ { "msg_contents": "\nWhile looking into setting up some libraries to use for 64 bit Windows \nbuilds, I took a quick look at the output from the 64 bit postgres \nbuilds currently running. They're actually quite clean, a heck of a lot \ncleaner than several other packages I have been looking at, quite a good \n...
[ { "msg_contents": "One use case for this might be with constraint exclusion where there\nwould be one\npartition per collation (language) with queries against the parent table always\nbeing for exactly one language.\n\n\nNot sure what the collation should be in the parent table then.\n", "msg_date": "Sat, 1...
[ { "msg_contents": "Andrew Dunstan wrote:\n \n> What makes you think this isn't possible to run pgindent?\n \nI have to say, I've been rather mystified by the difficulty\nattributed to running pgindent. During work on the SSI patch, I ran\nit about once every two weeks on files involved in the patch, just so\n...
[ { "msg_contents": "[sent this a few days ago, must have gotten lost in \"moderation\" because\nof the original subject]\n\nWith the latest master branch:\n\n initdb -D somewhere --locale=C --encoding=LATIN1\n\nThen in psql:\n\n set client_encoding to utf8;\n\ncauses a segfault in the backend. The backtra...
[ { "msg_contents": "I'm getting JDBC exceptions when I try to connect to 9.1 (master) with \nthe postgresql-9.0-801.jdbc3.jar I don't have this issue with 9.0.\n\n\nThere is nothing obvious at http://jdbc.postgresql.org or in the 9.1 \nalpha release notes that indicate a newer JDBC driver will be required.\n\nH...
[ { "msg_contents": "This came from a review by Noah Misch a great while ago:\n\ntest=> SELECT b FROM foo ORDER BY 1 COLLATE \"C\";\nERROR: 42804: collations are not supported by type integer\n\nAccording to SQL92, this should be supported. Do we want to bother? It\ndoesn't look hard to fix, so it's really onl...
[ { "msg_contents": "Hi,\n\nToday (and previously) I wished that pgbench had a mechanism to help\ncreate simple random databases. For example, I could create a table\n\"tenk\" and fill it with random stuff like\n\n\\setrandom foo 1 10000\ninsert into foo values (:foo)\n\nNow I have to run this 10000 times or som...
[ { "msg_contents": "Hackers,\n\nWe're short one mentor for Google Summer of Code. There's one advanced\nindexing project we'd really really like to accept, but we cannot\nbecause we don't have a mentor who feels up to it.\n\nIf you didn't previously volunteer to be a GSOC mentor, and might be\nable to help a st...
[ { "msg_contents": "Folks,\n\nWhile readjusting pg_docbot's URLs for LEAST and GREATEST, I came\nacross an infelicity. They'd been tagged as\n\"http://www.postgresql.org/docs/current/static/functions-conditional.html#AEN12680\"\nand I re-tagged them as \n\"http://www.postgresql.org/docs/current/static/functions...
[ { "msg_contents": "Hello, Pgsql-hackers.\n\nToday I built libpq.dll library on Windows XP using MinGW and got one\nwarning message:\n\nPablo@computer /z/pasha/postgresql-9.0.4/src/interfaces/libpq\n$ make\n\n...\n\ngcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -...
[ { "msg_contents": "I'm not sure what the right thing is to do here.\n \nHeikki added a new testing methodology under src/test/isolation\nwhich allows intermingling a series of statements on multiple\nconnections in desired permutations. (By default each test defined\nfor it runs all permutations of how the sta...
[ { "msg_contents": "Last week we fixed a problem in which REINDEX could corrupt pg_index's\nown indexes by forbidding it from setting indcheckxmin on a system\ncatalog's index. While thinking about bug #5985 I realized that there's\na better, more general solution. Namely, that when reindexing an\nexisting ind...
[ { "msg_contents": "I believe I've worked out what's going on in bug #5985. The example\nscript contains an UPDATE on a table, then a creation of an index,\nthen a CLUSTER on that index, all within one transaction. If the\nUPDATE does any HOT updates, then the index is going to be marked\nwith indcheckxmin hor...
[ { "msg_contents": "Suppose Postgres is installed in two computers C1 & C2.\nC1 have some database tables. How can I copy these database tables from C1\nto C2.\nI mean to say that can I copy tables from postgres installed in one m/c to\nanother m/c.\nIs there any command in postgres to do so or any other short c...
[ { "msg_contents": "Hi,\n\nI tried applying a collation to a GROUP BY clause without applying the\ncollation to the corresponding column in the SELECT clause.\n\npostgres=# SELECT things, count(*) FROM stuff GROUP BY things COLLATE \"C\";\nERROR: column \"stuff.things\" must appear in the GROUP BY clause or be\...
[ { "msg_contents": "The attached, applied patch adds a check to throw a pg_upgrade error\nduring the check phase, rather than during the post-check upgrade phase.\n\nSpecifically, if someone removes the 'postgres' database from the old\ncluster and the new cluster has a 'postgres' database, the number of\ndataba...
[ { "msg_contents": "While I was out at the MySQL conference last week, I heard that one of\nthe forthcoming MySQL features is \"time-delayed replication\":\n\nhttp://forge.mysql.com/worklog/task.php?id=344\n\nThat is, a standby configured such that replay lags a prescribed\namount of time behind the master.\n\nT...
[ { "msg_contents": "pgindent seems to have muffed it when it comes to BulkInsertStateData:\n\ndiff --git a/src/backend/access/heap/hio.c b/src/backend/access/heap/hio.c\nindex 2849992..72a69e5 100644\n--- a/src/backend/access/heap/hio.c\n+++ b/src/backend/access/heap/hio.c\n@@ -150,7 +150,7 @@ ReadBufferBI(Relat...
[ { "msg_contents": "I found that DROP OWNED BY can cause $SUBJECT.\n\nHow to reproduce the error:\n\n----\nCREATE USER foo;\nALTER DEFAULT PRIVILEGES GRANT ALL ON SEQUENCES TO foo;\nDROP OWNED BY foo;\n----\n\nAttached patch would fix this issue.\n\nRegards,\n-- \nShigeru Hanada", "msg_date": "Wed, 20 Apr 20...
[ { "msg_contents": "Hello List, \n\nWe are getting the following log while configuring hot standby, \n\n2011-04-20 17:34:40 ETC/GMT FATAL: the database system is starting up \n2011-04-20 17:34:41 ETC/GMT FATAL: database system identifier differs\nbetween the primary and standby \n2011-04-20 17:34:41 ETC/GMT DE...
[ { "msg_contents": "What with the recent discussions, I've been looking harder at the\nREINDEX code's interactions with HOT, and I've found another problem\naltogether. To wit, IndexBuildHeapScan considers the DELETE_IN_PROGRESS\ncase to be comparable to RECENTLY_DEAD, but that analogy fails for\nHOT-updated tu...
[ { "msg_contents": "Hackers,\n\nI finally got round to updating a couple of my extensions to support 9.1 extensions. Unlike the contrib extensions, these needed to target older versions of PostgreSQL, as well. Case in point, the semver data type; you might find the Makefile of particular interest:\n\n https://g...
[ { "msg_contents": "I use tables all the time that have sequences on smallint's; \n\n \n\nI'd like to simplify my create files by not having to create the sequence\nfirst, but I also don't want to give up those 2 bytes per column!\n\n \n\nCan this be added?\n\n \n\nMike\n\n \n\n \n\n--- postgresql-9.0.4/src/back...
[ { "msg_contents": "Allow ALTER TABLE name {OF type | NOT OF}.\n\nThis syntax allows a standalone table to be made into a typed table,\nor a typed table to be made standalone. This is possibly a mildly\nuseful feature in its own right, but the real motivation for this\nchange is that we need it to make pg_upgra...
[ { "msg_contents": "Daniel Farina points out to me that the Linux man page for fsync() says\n\"Calling fsync() does not necessarily ensure that the entry in the directory\n containing the file has also reached disk. For that an\nexplicit fsync() on a\n file descriptor for the directory is also neede...
[ { "msg_contents": "To start at the end of this story: \"DETAIL: Could not read from file\n\"pg_clog/007D\" at offset 65536: Success.\"\n\nThis is a message we received on a a standby that we were bringing\nonline as part of a test. The clog file was present, but apparently\ntoo small for Postgres (or at least...
[ { "msg_contents": "Hi,\nI am defining a new data type called mpoint\ni.e.\ntypedef struct mpoint\n{\n Point p;\n Timestamp t;\n} mpoint;\n\nFor defining input/output function\n\n1 Datum mpoint_in(PG_FUNCTION_ARGS)\n2 {\n3\n4 mpoint *result;\n5 char *pnt=(char *)malloc (sizeof (20));\...
[ { "msg_contents": "So the topic of \"real\" \"stored procedures\" came up again. Meaning a\nfunction-like object that executes outside of a regular transaction,\nwith the ability to start and stop SQL transactions itself.\n\nI would like to collect some specs on this feature. So does anyone have\nlinks to doc...
[ { "msg_contents": "On Thu, Apr 21, 2011 at 12:26 PM, Cédric Villemain\n<cedric.villemain.debian@gmail.com> wrote:\n> Robert, Please don't add confusion to your signature : PostgreSQL is a\n> community project not an enterprise product.\n> --\n> Cédric Villemain               2ndQuadrant\n> http://2ndQuadrant.fr...
[ { "msg_contents": "Hello pgsql-hackers,\n\nwhat is the best way to test a new developed index structure?\n\nGreets, Yves\n", "msg_date": "Thu, 21 Apr 2011 20:34:54 +0200", "msg_from": "=?ISO-8859-15?Q?Yves_Wei=DFig?= <weissig@rbg.informatik.tu-darmstadt.de>", "msg_from_op": true, "msg_subject": ...
[ { "msg_contents": "Hi,\n\nanother question regarding indexes. Sadly I can't find enough info in\nthe documentation. Which of the functions are needed in order for a\nindex to work? I am developing a prototype so it would be great if not\nall of the functions have to be implemented. E.g. are amcostestimate or\na...
[ { "msg_contents": "Yves Weiᅵig<weissig@rbg.informatik.tu-darmstadt.de> wrote:\n \n> Ok, but I thought more like an automated test, or a test which\n> checks if the interface is correctly implemented.\n \nI'm not aware of any automated tests which would test whether a new\nindex type is correctly implemented. ...
[ { "msg_contents": "I just noticed that the collation patch has modified char2wchar and\nwchar2char to accept a collation OID as argument ... but it hasn't done\nanything to make those arguments actually work. Since those functions\ndepend on wcstombs and mbstowcs, which respond to LC_CTYPE and nothing\nelse, t...
[ { "msg_contents": "Perl 5.14.0-RC1 came out a few days ago...\n\nThere is a minor compile time error due to the API changing a bit:\nplperl.c:929:3: error: lvalue required as left operand of assignment\n\nThis is due to GvCV() no longer returning an lvalue, instead they want\nus to use the new GvCV_set macro. (...
[ { "msg_contents": "> Dan Ports wrote:\n \n> Even under these conditions I couldn't reliably see a slowdown. My\n> latest batch of results (16 backends, median of three 10 minute\n> runs) shows a difference well below 1%. In a couple of cases I saw\n> the code with the SSI checks running faster than with them r...
[ { "msg_contents": "Hi,\n\nwhile measuring NOTIFY execution time, I noticed a significant\nperformance drop.\n\nPlease find a patch attached, together with some tests; more details\nare shown below.\n\nBest regards,\nDr. Gianni Ciolli - 2ndQuadrant Italia\nPostgreSQL Training, Services and Support\ngianni.ciolli...
[ { "msg_contents": "Yves Wei�ig wrote:\n \n> I can not find \"amcostestimate\" in hash.h or anywhere, or am I\n> missing something?\n \nSearch for hashcostestimate here:\n \nhttp://git.postgresql.org/gitweb?p=postgresql.git;a=blob;f=src/backend/utils/adt/selfuncs.c\n \nTo find that, I ran this query:\n \nselec...
[ { "msg_contents": "I think the collations patch has now gone about as far as it's going to\nget for 9.1. There are a couple of areas that ought to be on the TODO\nlist for future versions, though:\n\n* Integrating collations with text search configurations. There are\nseveral places in the tsearch code that c...
[ { "msg_contents": "\ngetopt.c is looking a bit ancient. In particular, getopt() has no \nprototype and old style arguments. Is there any reason not to bring this \ninto the 1990s (or is that 1980s?)\n\ngcc also doesn't like the way perl does unused attributes on Windows, \nand it generates quite a few warnings ...
[ { "msg_contents": "\nThe declaration of pgwin32_send in src/backend/port/win32/socket.c has:\n\n int pgwin32_send(SOCKET s, char *buf, int len, int flags)\n\n\nbut the on my Linux machine, the prototype for send() is:\n\n ssize_t send(int sockfd, const void *buf, size_t len, int flags);\n\n\nIs there ...
[ { "msg_contents": "I have applied the attached patch which prevents copy_file() from being\ncompiled on Win32, per report from Andrew Dunstan. copy_file() is not\nused on Win32 and generates a warning.\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB ...
[ { "msg_contents": "The attached patch is intended to clean up a bunch of compiler warnings \nseen on Windows due to mismatches of signedness or constness, unused \nvariables, redefined macros and a missing prototype.\n\nIt doesn't clean up all the warnings by any means, but it fixes quite a few.\n\nOne thing I'...
[ { "msg_contents": "Hi,\n\na recent discussion about possible data corruption (in the general list)\nsuggests that a tool for offline integrity check might be useful.\nSomething that might be run when the database is shut down, to check\nthat the data files are OK.\n\nThe idea is to read all heap blocks and chec...
[ { "msg_contents": "Hi,\n\nagain index access methods, can somebody shed some light into operator\nclasses for indexes? The documentation is an entry point, but after\nreading I still don't have a clue how exactly they are used and created?\nPerhaps somebody with great knowledge can supply an 101 on opeartor\ncl...
[ { "msg_contents": "Unlogged tables are a good new feature.\n\nI noticed Bruce had mentioned they were the equivalent of NoSQL, which\nI don't really accept. I guess it depends upon whether you mean NoSQL\nfor caches (e.g. memcached) or NoSQL for useful datastores (e.g.\nMongo). It seems worth discussin now befo...
[ { "msg_contents": "I noticed again that make check in contrib doesn't work, so here is a\npatch to fix it. Perhaps someone wants to fill in the Windows support\nfor it. Naturally, this works only for contrib itself, not for external\npackages that use pgxs.\n\nA secondary issue that actually led to this: I w...
[ { "msg_contents": "The only data we can't rebuild it's the heap. So what about an option for UNlogged indexes on a LOGged table? It would always preserve data, and it would 'only' cost a rebuilding of the indexes in case of an unclean shutdown. I think it would give a boost in performance for all those cases wh...
[ { "msg_contents": "I noticed that ALTER FOREIGN TABLE RENAME TO emits a wrong hint message \nif the object was not a foreign table. ISTM that the hint message is \nnot necessary there. Attached patch removes the hint message.\n\nSteps to reproduce the situation:\n\npostgres=# CREATE FOREIGN TABLE foo () SERVER...