A pipeline the oil market had all but forgotten spilled 500 barrels of heavy oil into the Pacific Ocean last week. Line 901. A quarter century ago, it was a pipeline full of promise. Before it leaked on May 19, pouring viscous crude into the waters off California’s coast, the 24-inch line was carrying 28,800 barrels a day, mostly to a small refinery near Santa Barbara, at less than a fifth of its capacity.

It’s a relic from another time, an era that peaked in the 1990’s when drillers dove into the waters off California’s coast chasing billions of barrels lying beneath the ocean floor. The state was producing so much crude back then that a larger pipeline was built to send California’s offshore oil to Texas. Today, Kinder Morgan Inc. has a plan to revive that link -- to send Texas oil to California’s refiners.

“This line is a remnant, from when huge volumes of California oil were supposed to materialize and never did,” David Hackett, president of energy consultant Stillwater Associates in Irvine, California, said of the Plains All American Pipeline LP system that leaked. “Now the shale revolution’s changed everything. We’re seeing dramatic increases in production elsewhere.”

In 1969, a blowout at a Union Oil platform dumped an estimated 80,000 barrels of crude off the coast of Santa Barbara in what was then the worst spill in U.S. history. Ensuing moratoriums helped cut the state’s offshore oil production to a fourth of its August 1995 peak at 204,000 barrels a day.

“There are a number of reasons production falls, but there are platforms that have shut since then, and these are finite resources,” Sheri Pemberton, chief of external affairs for the California State Lands Commission, said by phone May 26.

California’s total oil production peaked at 1.11 million barrels a day in February 1986. Environmental battles and the unique challenge of boring through uneven layers of rock have curbed new drilling as flows from legacy fields peter out.

Last week’s spill may be another blow to California oil production, with environmentalists including Food & Water Watch calling on policy makers to phase out drilling in the state altogether. Plains All American spokesman Brad Leone declined to comment, saying the company is focused on its response to the spill.

The drop in oil production in state waters has slowed in the past few years and actually rose in 2013 by 3,000 barrels a day to about 40,000, state data show. Companies have been using technological improvements such as directional and extended-reach drilling to keep platforms alive, according to the California Energy Commission.

“Bringing additional wells online can and did increase total output from state waters,” Gordon Schremp, a senior fuels specialist at the energy commission, said by e-mail on May 26.

Those wells face stiffer competition than they did 25 years ago. California’s oil refiners have brought in record volumes of cheap oil by rail and barge from shale formations such as North Dakota’s Bakken and Colorado’s Niobrara. In 2012, North Dakota surpassed California and Alaska to become the nation’s second-biggest oil producer.

Posted prices for California’s heavy Midway Sunset crude have fallen 46 percent in the past three years, averaging $53.96 a barrel yesterday, data compiled by Bloomberg show. The U.S. benchmark West Texas Intermediate oil traded at $56.90 a barrel on the New York Mercantile Exchange at 12:01 p.m. East Coast time.

Crude from Canada’s oil sands is also showing up at California’s plants, as well as the occasional Texas barrel.

That’s where Kinder Morgan’s Freedom pipeline comes in, the project that would revive the path that once carried California oil to Texas. Kinder hasn’t provided an update to the market on the Freedom project since saying it was gauging interest from potential customers and shippers, company spokesman Richard Wheatley said May 27.

“It’s interesting how these pieces of pipe in the ground get repurposed, isn’t it?” Hackett asked. “If this one’s actually done, it’s going to be just one in a long line of pipes that are being repurposed in ways that nobody could have ever anticipated.”