Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 07:48 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx


[removing -patches since no patch was attached]

Mark Woodward wrote:

>I have a fairly simple extension I want to add to contrib. It is an XML
>parser that is designed to work with a specific dialect.
>
>I have a PHP extension called xmldbx, it allows the PHP system to
>serialize its web session data to an XML stream. (or just serialize
>variables) PHP's normal serializer is a non-standard home grown format
>that it impossile to read. The xmldbx format may not be too much easier,
>but I have a format document for it. I also have a PostgreSQL extension
>that can take serialized data and use it in a query, like:
>
>select xmldbx('data.userdata.id', sessions.data);
>
>If the PHP variable has $userdata['id'] set to some varible in its session
>data, it will be returned.
>
>This allows a lot of flexability and a tight integration between
>PostgreSQL and PHP.
>
>
>
>


This sounds highly specialised, and probably more appropriate for a
pgfoundry project.

In any case, surely the whole point about XML is that you shouldn't need
to contruct custom parsers. Should we include a specialised parser for
evey XML dialect someone might want to store in the database?

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 07:48 AM
Mark Woodward
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

>
> [removing -patches since no patch was attached]
> This sounds highly specialised, and probably more appropriate for a
> pgfoundry project.
>
> In any case, surely the whole point about XML is that you shouldn't need
> to contruct custom parsers. Should we include a specialised parser for
> evey XML dialect someone might want to store in the database?


XML is not really much more than a language, it says virtually nothing
about content. Content requires custom parsers.

While I understand the notion that we don't want to have a custom parser
for every XML data spec, I did commit the xmldbx extension into the PHP
extensions.

MySQL has great street cred because it is very well integrated with PHP.
This extension may appeal to PHP users and make it more enticing to
PostgreSQL instead.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 07:48 AM
David Fetter
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

On Sun, Jan 29, 2006 at 02:04:47PM -0500, Mark Woodward wrote:
> > [removing -patches since no patch was attached] This sounds highly
> > specialised, and probably more appropriate for a pgfoundry
> > project.

>
> XML is not really much more than a language, it says virtually
> nothing about content. Content requires custom parsers.


<aol>I also think this would make a great pgfoundry project </aol>

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 07:48 AM
Tom Lane
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

David Fetter <david@fetter.org> writes:
> <aol>I also think this would make a great pgfoundry project </aol>


Yeah ... unless there's some reason that it needs to be tied to PG
server releases, it's better to put it on pgfoundry where you can
have your own release cycle.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 07:48 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx



Mark Woodward wrote:

>XML is not really much more than a language, it says virtually nothing
>about content. Content requires custom parsers.
>
>


Really? Strange I've been dealing with it all this time without having
to contruct a parser. What you do need is to provide event handlers to a
stream parser such as SAX, or a use an API such as DOM to insert/extract
data to/from the XML.

>While I understand the notion that we don't want to have a custom parser
>for every XML data spec, I did commit the xmldbx extension into the PHP
>extensions.
>
>MySQL has great street cred because it is very well integrated with PHP.
>This extension may appeal to PHP users and make it more enticing to
>PostgreSQL instead.
>
>
>


Postgres generally seems to favor extensibility over integration, and I
generally agree with that approach.

Before we even consider it I would want to see how much traction your
PHP extension gets.

Also, what are its dependencies? If it's dependent on PHP headers to
build or libraries to run that would be unfortunate - we might need to
invent some sort of configure flag to include/exclude some contrib
modules in that case.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 07:49 AM
Mark Woodward
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

>
>
> Mark Woodward wrote:
>
>>XML is not really much more than a language, it says virtually nothing
>>about content. Content requires custom parsers.
>>
>>

>
> Really? Strange I've been dealing with it all this time without having
> to contruct a parser. What you do need is to provide event handlers to a
> stream parser such as SAX, or a use an API such as DOM to insert/extract
> data to/from the XML.


Yes, those are applications that allow you to create a data handler, expat
is basically everything else is a custom parser.

>
>>While I understand the notion that we don't want to have a custom parser
>>for every XML data spec, I did commit the xmldbx extension into the PHP
>>extensions.
>>
>>MySQL has great street cred because it is very well integrated with PHP.
>>This extension may appeal to PHP users and make it more enticing to
>>PostgreSQL instead.
>>
>>
>>

>
> Postgres generally seems to favor extensibility over integration, and I
> generally agree with that approach.


I generally agree as well, but.....

I think there is always a balance between "out of the box" vs
"extensibility." I think integration and extensibility is fantastic for
addaptation of your product, but "oobe" (out of box experience) is
important for those you want to target.

By all practical measure PostgreSQL is miles ahead of MySQL, but MySQL
wins because it is the defacto PHP database. PostgreSQL does not target
PHP in any real sense, I am proposing adding this extension to change
that.

Having a PHP serializer that hooks up to the database in a usable way,
IMHO, makes a strong link between the two.

>
> Before we even consider it I would want to see how much traction your
> PHP extension gets.


This is the classic chicken and the egg thing that kills a potentially
great idea.

Step back and ask yourself "is it something you see as valuable." If you
answer no, then there is no point in dicussing it anymore. If you answer
"yes," then consider the PHP admin who wants to be able to accomplish what
this provides. The PHP guy will be used to MySQL and not know anything
about PostgreSQL, wouldn't making the barrier to entry lower make sense?

If it is a "good idea" then, making it easier to do makes sense.


>
> Also, what are its dependencies? If it's dependent on PHP headers to
> build or libraries to run that would be unfortunate - we might need to
> invent some sort of configure flag to include/exclude some contrib
> modules in that case.


I wrote it so it could be in the contrib with nothing but expat (which
most systems have.)


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2008, 07:49 AM
Jonah H. Harris
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

On 1/29/06, Mark Woodward <pgsql@mohawksoft.com> wrote:
>
> I generally agree as well, but.....
>
> I think there is always a balance between "out of the box" vs
> "extensibility." I think integration and extensibility is fantastic for
> addaptation of your product, but "oobe" (out of box experience) is
> important for those you want to target.



Unlike MySQL, PostgreSQL does not target one audience (i.e. the "low-end").
PostgreSQL targets various groups (scientific, enterprise, hobby, OLTP, ...)
which means that providing a nice OOBE for each of these targets would bloat
the main distribution. No one feels that your project isn't a good one, we
just suggest that moving it to a pgfoundy project would be a better idea.

By all practical measure PostgreSQL is miles ahead of MySQL, but MySQL
> wins because it is the defacto PHP database. PostgreSQL does not target
> PHP in any real sense, I am proposing adding this extension to change
> that.



In most PHP applications I've seen, MySQL wins only because it is the
developer's default database. Likewise, most PHP/MySQL-only applications
are generally poorly designed and developed. To this day, I know of no
specific features in MySQL that make it a nicer database for PHP.

Having a PHP serializer that hooks up to the database in a usable way,
> IMHO, makes a strong link between the two.



I agree that it's a nice project, but how many people use PostgreSQL with
languages other than PHP? A language-specific extension would, IMHO, need
to have a real good reason to be included in the main distribution.

This is the classic chicken and the egg thing that kills a potentially
> great idea.



Unfortunately, this can be said for everything. However, in the end this
thinking does tend to kill more bad ideas than good ones.

Step back and ask yourself "is it something you see as valuable." If you
> answer no, then there is no point in dicussing it anymore. If you answer
> "yes," then consider the PHP admin who wants to be able to accomplish what
> this provides. The PHP guy will be used to MySQL and not know anything
> about PostgreSQL, wouldn't making the barrier to entry lower make sense?



Yes, the project is a great idea. I would surely like to see it in a
pgfoundry project. I also wish we also had a better PostgreSQL developer
tools area on the website which would list these types of projects for PHP,
C, C++, .NET, Java, ...

If it is a "good idea" then, making it easier to do makes sense.


If I were you, I'd just create a pgfoundry project which includes the
contrib module and a few examples.

I wrote it so it could be in the contrib with nothing but expat (which
> most systems have.)



We've encountered issues like this with readline, crypt, etc. and I know of
several Linux distros which do not include expat. Likewise, I don't recall
ever seeing expat on Solaris or Windows in a non-application-specific
installation.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-11-2008, 07:49 AM
Mark Woodward
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

> David Fetter <david@fetter.org> writes:
>> <aol>I also think this would make a great pgfoundry project </aol>

>
> Yeah ... unless there's some reason that it needs to be tied to PG
> server releases, it's better to put it on pgfoundry where you can
> have your own release cycle.
>


I don't need pfoundry, per se' but I was hoping that it could be part of
the core distribution.

My personal feelings are these: I use PHP a lot and I use PostgreSQL a lot
for what I do. PHP plays favorites, they actively promote MySQL even
though it is a bad database in the database sense.

I would like to see PostgreSQL, at least passivly, include niceties for
PHP users. In quaint terms, "show them you care."

On a side note, PostgreSQL is a little too self centric. It is a great
project that doesn't get the credit it deserves and I think that it is
because the project, as a whole, doesn't try to actively court or support
popular applications.

The pgfountry and formally gborg are reat, but unless you actively promote
them people can't find them. There should e a big huge button and/or link
to pgfountry that shows how much is availale to PostgreSQL.


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-11-2008, 07:49 AM
Mark Kirkwood
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

Mark Woodward wrote:

> There should e a big huge button and/or link
> to pgfountry that shows how much is availale to PostgreSQL.
>


While there are links to 'em mentioned on the web site, I agree that
making (particularly) Pgfoundry more prominent would be a good idea.

Mark, do you want to suggest that on -advocacy (since I suspect that's
the place to get it to happen)?

Cheers

(the other) Mark

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-11-2008, 07:49 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Want to add to contrib.... xmldbx

Mark Kirkwood said:
> Mark Woodward wrote:
>
>> There should e a big huge button and/or link
>> to pgfountry that shows how much is availale to PostgreSQL.
>>

>
> While there are links to 'em mentioned on the web site, I agree that
> making (particularly) Pgfoundry more prominent would be a good idea.
>
> Mark, do you want to suggest that on -advocacy (since I suspect that's
> the place to get it to happen)?
>
>


A nicer idea would be something like a utility could we ship that will
download, build and install module foo for you. Then we could publish many
many modules on pgfoundry, their authors could look after them, and
installing them would be trivial. pgxs should make such a thing a lot
simpler in many cases.

Of course, building it would be quite a bit of work :-)

cheers

andrew



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564