Databases16k+ stars

PostgreSQL

The world's most advanced open source database

Commit Details

Message
"Initial cvs import"
Author
Marc G. Fournier
Date
1996-07-09
Hash
d31084e9d1118b25fd16580d9d8c2924b5c6f9d0

Fun Fact

PostgreSQL descended from POSTGRES, developed at UC Berkeley. The "SQL" was added after they implemented SQL support in 1995.

</>First Code

C
/*-------------------------------------------------------------------------
 *
 * postgres.c
 *	  POSTGRES main() and target environment startup
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 *-------------------------------------------------------------------------
 */

#include "postgres.h"

int
main(int argc, char *argv[])
{
    /* Initialize the backend */
    InitPostgres(argc, argv);
    
    /* Main query processing loop */
    for (;;)
    {
        /* Get next query from client */
        const char *query = ReadQuery();
        
        /* Parse, plan, execute */
        ProcessQuery(query);
    }
    
    return 0;
}